awsome program with try except and if else Get link Facebook X Pinterest Email Other Apps September 05, 2023 try: n = int(input("enter it : ")) if n>10: print(True) else: print(False)except: raise Exception('There has been an error in the system') Get link Facebook X Pinterest Email Other Apps Comments
try except error handling September 02, 2023 try : a = int ( input ( "enter your age: " )) print ( a ) except : print ( "some error occured" ) Read more
if and else September 02, 2023 age = int ( input ( "enter you age :" )) if ( age > 17 ): print ( "yes you can drive" ) else : print ( "no you can't" ) Read more
Comments
Post a Comment