Python worksheet
Python worksheet
c. 12,345
d. 12345
3. Correct the following program that adds up 2 integers 12 and 75 using variables. Underline
each correction.
9. Write a program using variables to find the area and circumference of a circle whose radius is
12cm.
Note that :
Area of a circle= π r2
Circumference of a circle = 2 π r
Where r is the radius of the circle and π is 3.142.
10. Write a program to assign 5 and 6 to variables a and b respectively and interchange them.
Thus after interchanging, a and b will be 6 and 5 respectively.
11. Write a program to initialize three variables a, b and c with 234, 456 and 712 and store the
sum of the last digits of the variables into d and display it.