TORONTO KIDS COMPUTER CLUB | Markham Saturday 15:30 Python Homework 12.07
16825
post-template-default,single,single-post,postid-16825,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Markham Saturday 15:30 Python Homework 12.07

13 Dec Markham Saturday 15:30 Python Homework 12.07

Question 1:
Write a function to find the factorial of a number. The function should take one number as an argument and print the factorial of that number

Input: 5
Output: 120

Hint: the factorial of 5 is 1 * 2 * 3 * 4 * 5 = 120 and also use loops inside the function


Question 2:
Write a function that prints a multiplication table of a number. The function should take one number as an argument and print the multiplication table of that number.

No Comments

Sorry, the comment form is closed at this time.