What will be the output ? | Sololearn: Learn to code for FREE!

0

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)

7/24/2021 12:08:31 PM

Swapna Jha

1 Answer

New Answer

0

Many errors, bit if fixed, here is the output https://code.sololearn.com/cl2g9clV4NV7/?ref=app