TORONTO KIDS COMPUTER CLUB | Friday 17:00 Python Homework 22.04.29
20595
post-template-default,single,single-post,postid-20595,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Friday 17:00 Python Homework 22.04.29

05 May Friday 17:00 Python Homework 22.04.29

Question :
Create a loop between 1 to 20.

  • Print “fizz” if the number is divisible by 3
  • Print “bizz” if the number is divisible by 5
  • Print “fizzbizz” if a number is divisible by both 3 and 5.
  • Otherwise, print the number itself.
No Comments

Sorry, the comment form is closed at this time.