SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Data Science 1 exam

» Start this Course
(Practice similar questions for free)
Question:

Example of While loop with num:

Author: Jessica Ruvalcaba



Answer:

# WHILE construct num = 11 while num > 0: ----num -=1 ---- if num % 4 == 0: ------- #skip 0 and multiples of 4 ------- print("skip multiples of 4") continue -----print(num) -----print("looping's over")


0 / 5  (0 ratings)

1 answer(s) in total