22nd Jun 2018, 7:33 PM
Andrew Watts
Andrew Watts - avatar
4 Antworten
+ 13
You just need to declare the data type of the input: length = int(input("Length: ")) width = int(input("Width: "))
22nd Jun 2018, 7:51 PM
Ava 🐈
Ava 🐈 - avatar
+ 13
good
25th Jun 2018, 3:36 AM
Archana
+ 8
Am glad that it was correctly answered by a Female, AVA
23rd Jun 2018, 5:19 PM
Andrew Watts
Andrew Watts - avatar
+ 4
input is by default of type string. If you want to multiply or add input you will have to convert to integer or float.
22nd Jun 2018, 9:07 PM
davy hermans
davy hermans - avatar