Indentation error in program can you please solve this ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Indentation error in program can you please solve this ?

ch="y" while ch=='y': name= input( 'Enter name:') clas= input ('enter class') print( name) print(clas) print('Want more entry press y:') ch=input("enter your choice y/n") if ch!='y': break print('thanks')

18th Mar 2020, 9:26 AM
AJ
AJ - avatar
1 Answer
+ 1
ch="y" while ch=='y': name= input( 'Enter name:') clas= input('enter class') print( name) print(clas) print('Want more entry press y:') ch=input("enter your choice y/n") if ch!='y': break print('thanks') #same indentation will belong to same block..
18th Mar 2020, 10:20 AM
Jayakrishna 🇮🇳