I'm a new at python but have a little bit of exp so I typed
a code:-
x=input('Enter the number')
y=input('Enter the number')
print('The product of x and y is');x*y=
END
But it always saysTraceback (most recent call last):
File "C:/Users/lapchief/Documents/Python/Python 1st program.py", line 3, in <module>
print('The product of x and y is');x*y
TypeError: can't multiply sequence by non-int of type 'str'
so plz tell is my code correct and if no then plz tell me what correction I need to do here.
a code:-
x=input('Enter the number')
y=input('Enter the number')
print('The product of x and y is');x*y=
END
But it always saysTraceback (most recent call last):
File "C:/Users/lapchief/Documents/Python/Python 1st program.py", line 3, in <module>
print('The product of x and y is');x*y
TypeError: can't multiply sequence by non-int of type 'str'
so plz tell is my code correct and if no then plz tell me what correction I need to do here.
Comment