Professional Documents
Culture Documents
2. Write a python code to calculate simple interest by inputting the values of principal
amount and rate from user for a time period of 5 years.
3.Write a program to convert the time inputted in minutes into hours and remaining
minutes.
4.Write a python program that accepts radius of a circle and prints its area.
5.Write a python program that accepts marks in 5 subjects and outputs average
marks.
6.Write a program to read three numbers in three variables and swap first two
variables with the sums of first and second, and third numbers respectively.
In [ ]: a,b = 0,1
c=int(input("Enter number of terms:"))
print("The fibonacci series is:")
for i in range(c):
print(a, end = " ")
a,b = b, a+b