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 ответ
+ 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 🇮🇳