Professional Documents
Culture Documents
Practical File
Class X (2023-2024)
Index
Program Code
Program Code
Program Code
Program Code
Program Code
a=0
b=1
count=0
n = int(input("Enter the limit for the numbers to print:"))
while count < n:
print (a)
c=a+b
a=b
b= c
count=count+1
Program Code
Program Code
Program Code
rows = int(input ("Please enter how many rows you need: "))
for i in range(1, rows+1):
for j in range(1, i + 1):
print(j, end=’ ’)
print('')
Output of the Program:
9. Python program to find:
a) Area of square
Program Code
Program Code
PI = 3.14
Radius = float (input ("Please enter the radius of the given
circle: "))
area_of_the_circle = PI * Radius * Radius
print (" The area of the given circle is: ", area of the circle)
Program Code
Program Code