+ 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'
3 RĂ©ponses
+ 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)
+ 2
you forget parenthesis
https://code.sololearn.com/c05OOQAoQUra/#py
+ 1
Just first learn some basic, and then go to try this code. I'm sure everything will make sense to you