What will be the output ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What will be the output ?

for i in range(1,3): if (i%2==0): for j in range(i,2): print("hi") else print('hello') else: for j in range(i,3): pass else print(i)

24th Jul 2021, 12:08 PM
Swapna Jha
Swapna Jha - avatar
1 Answer
+ 1
Many errors, bit if fixed, here is the output https://code.sololearn.com/cl2g9clV4NV7/?ref=app
24th Jul 2021, 12:12 PM
Brain & Bones
Brain & Bones - avatar