+ 1

Hey guys , I just started learning Python. Why it is a mistake here. I want to multiply. Can you help , please?) What’s wrong?

x=int input("Please enter x: ") print(x) z=int input("Please enter z : ") print(z) y=x*z print(y) ________________ MISTAKE: Please enter x: 10 <class 'int'> Please enter z : 100 <class 'int'> Traceback (most recent call last): File "<string>", line 7, in <module> TypeError: unsupported operand type(s) for *: 'type' and 'type'

1st May 2020, 7:14 PM
Gregory
3 odpowiedzi
+ 4
You forgot some parenthesis x=int(input("Please enter x: ")) print(x) z=int(input("Please enter z : ")) print(z) y=x*z print(y)
1st May 2020, 7:40 PM
Kevin ★
1st May 2020, 7:45 PM
Sabrena Islam
Sabrena Islam - avatar
+ 1
Just first learn some basic, and then go to try this code. I'm sure everything will make sense to you
2nd May 2020, 3:17 AM
xLord
xLord - avatar