MATCH in python (imp) Get link Facebook X Pinterest Email Other Apps 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") 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