List of Programs
Do practice of these programs in Python interpreter and then prepare a file.
- Write a program to print a string – “I read in Class 9”. >> View Source code
- Write a program to calculate area of rectangular field whose length is 10 m and breadth is 20 m. >> View Source code
- Write a program to calculate area of square whose side is 10 m. >> View Source code
- Write a program to find reminder and quotient, while 500 is divisible by 3. >> View Source code
- Write a program to find square of value 9. >> View Source code
- Write a program to find the expression a2 + b2 where a = 2 and b = 3. >> View Source code
- Write a program to find the expression (a3 + b3) – c3 where a = 2 , b = 3 and c = 1. >> View Source code
- Write a program to find simple interest where amount is 10000 at rate 5% p.a. for duration of 1 year. >> View Source code
- Write the output of the following python code.
a = 4
b = 5
c = a * b
d = a + b
print(“Hello India”,c,”and”,d)
>> View Output - Write the output of the following python code.
X = ‘4’
y = 5
z = x + y
print(z)
>> View Output - Write the output of the following python code.
X = ‘Hello’
y = “India”
z = x + y
print(z)
>> View Output - Write the output of the following python code.
X = ‘4’
y = “2”
z = x + y
print(z)
>> View Output