2

How exactly do you track the exact amount of iterations? I know its probably basic but can't figure out how so was hoping someone could explain to a complete beginner how you arrive at an answer.

def f(n):

i = 4

 while i < n:

 print(i)

 i = i + 1

( The answer should be max(n−4,0) )

yige
  • 21
  • 1

0 Answers0