4th Sep 2020, 2:31 PM
zeeshan
zeeshan - avatar
3 odpowiedzi
+ 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