+ 1

Heyo what's wrong with this code

Can anyone X-Plane what's wrong with this code code - integer1=(int(input())) integer2=(int(input())) sign=(input()) if sign = "x": print(integer1 * integer2 )

22nd Jun 2022, 1:31 PM
AARAV PANDEY
AARAV PANDEY - avatar
4 Answers
+ 3
sign = input() (⌐■_■) if sign == "x":
22nd Jun 2022, 2:00 PM
SoloProg
SoloProg - avatar
+ 4
look at the 'if statement', you are assigning a value instead of comparing
22nd Jun 2022, 1:43 PM
Sandeep
Sandeep - avatar
+ 3
THANK YOU BOTH OF YOU
22nd Jun 2022, 3:43 PM
AARAV PANDEY
AARAV PANDEY - avatar
+ 2
THANK YOU BOTH OF YOU
22nd Jun 2022, 3:43 PM
AARAV PANDEY
AARAV PANDEY - avatar