What mistake did I do | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
4th Sep 2020, 2:31 PM
zeeshan
zeeshan - avatar
3 ответов
+ 2
You forget to separate string and variables in print function by comma, you didn't assign length, breadth and height to a variable. https://code.sololearn.com/cVW6dI1LkRKB/?ref=app
4th Sep 2020, 2:37 PM
Maharnab Saikia
Maharnab Saikia - avatar
+ 2
You never made a variable named 'length'. You need to assign the value taken as input to a variable to be able to use them later. length = int(input("length: ")) will assign the value entered by the user for length in the variable 'length', which you can use later in the program. Do the same for breadth and height to make it work.
4th Sep 2020, 2:39 PM
XXX
XXX - avatar
+ 1
You not store the value to variables. First store the values, then do calculation. In last line: Put ,(comma) between String and variable.
4th Sep 2020, 2:39 PM
Vadivelan