Posts

Showing posts from August, 2021

python program

1)  Two or More input in one line # input two string saparated py coma(,), space a,b = input ( "enter two number:" ).split( "," ) print (a) print ( type (a)) print (b) print ( type (b)) # output: # enter two number:2,5 # 2 # <class 'str'> # 5 # <class 'str'> # input two integer saparated py space a,b = map ( int , input ( "enter two number" ).split()) print (a) print ( type (a)) print (b) print ( type (b)) # Output: # enter two number2 5 # 2 # <class 'int'> # 5 # <class 'int'> a = list ( map ( int , input ( "enter number:" ).split())) print (a) print ( type (a)) # Output: # enter number:2 5 9 3 # [2, 5, 9, 3] # <class 'list'> 2) Find common later between two string def   leter ():   str1...