multiplication by use of for and if Get link Facebook X Pinterest Email Other Apps September 02, 2023 a = int(input("enter the no. for which you want the table : "))print("the multiplication table of :", a)for count in range(1, 999): print(a, 'x', count, '=', a*count) Get link Facebook X Pinterest Email Other Apps Comments
awsome program with try except and if else 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' ) 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
I created a average function using def September 02, 2023 def average ( a , b ): return ( a + b ) / 2 print ( average ( 2 , 3 )) Read more
Comments
Post a Comment