Professional Documents
Culture Documents
2856-1637147234962-Practical_8.2 [4 hours]
2856-1637147234962-Practical_8.2 [4 hours]
Practical (4 Hours)
3. Write a Python program to input the marks of 3 subjects. Then Calculate and print the total
and the average of the marks.
4. Re-write the program in question 3 to get the name of the student and the marks as user
inputs.
6. Write a program to get the length and width of a rectangle as user inputs and display the
perimeter.
8. A) Write a Python program to enter the radius of a circle and calculate the area of the circle.
B) Re-write the program to get the radius as a user input.
Page 1
9. Create a program that asks the user to enter their name and their age. Print out a message
addressed to them that tells them the year that they will turn 100 years old.
10. A) Write a Python program to create a string variable to store a value “Welcome to Python
Programming Language”.
11. Write a Python program to get the user to input the first name and last name separately and
print the entire name as a single output.
12. A) Create a dictionary to store the id, name, age, marks and grade of a student.
B) Write the code to display the id, name and average of the student.
15. Create a dictionary to store your exam marks for five subjects as key value pairs and print
one by one.
Page 2