TORONTO KIDS COMPUTER CLUB | PMCA Sunday 14:00 Python Homework 20.08.23.
18218
post-template-default,single,single-post,postid-18218,single-format-standard,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

PMCA Sunday 14:00 Python Homework 20.08.23.

29 Aug PMCA Sunday 14:00 Python Homework 20.08.23.

Question 1:
Ask the user for two numbers and then print the addition, subtraction, division(quotient), multiplication and the remainder(the number left when the first number is divided by the second number)

Sample Execution in shell
-------------------------------------------------
>>> Enter first number: 20
>>> Enter second number: 8
>>> Addition is 28
>>> Subtraction is 12
>>> Multiplication is 160
>>> Division is 2
>>> Remainder is 4

Question 2:
Ask the user for the radius of the circle in meters and then calculate the area and circumference of the circle by using the formulas –
The formula of the area of the circle is (pi * radius * radius) and circumference is (2 * pi *radius)
For the value of pi use 3.14

Sample Execution in shell
----------------------------------------------------
>>> Enter Radius of the circle : 3
>>> Area of the circle is 28.26 sq. m.
>>> Circumference of the circle is 18.84 sq. m
No Comments

Sorry, the comment form is closed at this time.