Continue function not running

Question:

n=1
while n<=10:
    if n==7:
    n+=1
    continue
print(n)
n+=1

Hello! Could you please format the code using triple backticks ( ```)
like this:

n=1
while n<=10:
  if n==7:
    n+=1
    continue
print(n)
n+=1
1 Like

use your mouse to select lines 4 and 5 in the editor and hit tab key to indent it by one level into the if block

1 Like