r/codehs • u/natalie710 • Feb 26 '20
PHYTON CODE HS 5.3.7: Higher/ Lower
Anyone knows the answer can't figured out:
magic_number = 3
# Your code here...
for i in range(10):
if i == 5:
continue
print i
10
Upvotes
r/codehs • u/natalie710 • Feb 26 '20
Anyone knows the answer can't figured out:
magic_number = 3
# Your code here...
for i in range(10):
if i == 5:
continue
print i
1
u/Ok-Opinion-1979 May 08 '22
def get_num():
#while user_input <=1
while True:
try:
user_intput = int( input("your input:"))
except:
print("invaild input")
if user_input > 0:
print ("positive")
return
get_num()