Writing Program Python and Python Code
Subject: Sp22-bai-025 BASI LAB#1
Write a program that prompts the user to input an integer and then outputs the number with the digits reversed. For example, if the number is 12345, the output should be 54311.
n=input ("Enter an integer")
print("Reverse number of",n,"is",n[::-1])
Write a program python that reads a set of integers, and then prints the sum of the even and odd integers.
intger_string = input ("Enter several integers ")
for integer in intger_string.split(" "):
integer = int (integer)
if integer % 2:
print ("Sum of even integrs is : ",sum_even)
print ("Sum of odd integrs is : ",sum_odd)
Fibonacci series is that when you add the previous two numbers the next number is formed. You have
to start from 0 and 1.