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
MATCH in python (imp) September 02, 2023 a = int ( input ( "enter the number : " )) match a : case 1 : print ( "case is 1" ) case 2 : print ( "case is 2" ) case 3 : print ( "case is 3" ) case _: print ( "there is no such case" ) Read more
Lists September 01, 2023 l1 = [ 3 , 43 , 434 , 2 ] l1 . extend ([ 12 , 21 , 45 , 321 ]) print ( l1 ) l1 . sort () print ( l1 ) Read more
Comments
Post a Comment