Calculate Area Of Rectangular Prism

Python 3.6.1 (default, Dec 2015, 13:05:11)

[GCC 4.8.2] on linux


Enter the length: 5

Enter the width: 6

Enter the heigth: 7

Traceback (most recent call last):

File "python", line 1, in <module>

File "python", line 5, in calc_volume

TypeError: can't multiply sequence by non-int of type 'str'

This is what I get on the console when I run the code below:

def calc_volume(length=float, width=float, height=float):

length = input("Enter the length: ")

width = input("Enter the width: ")

height = input("Enter the heigth: ")

calc_volume = (str(length) * str(width) * str(height))

print("The volume of the rectangular prism is " + calc_volume)

return calc_volume()

I need to get length x width x height and keep getting errors.

Beceriler: Python

Daha fazlasını gör: python smpp module, python rtf module, python email module save attachment, how to find the surface area of a triangular prism, right rectangular prism calc: find d, lateral area of a rectangular prism, volume of a rectangular prism, surface area of a rectangular prism worksheet, surface area of a rectangular pyramid, right rectangular prism calc: find v, surface area of a prism, python extension module development, python wireless module, telit python ser module, calculate area polygon google maps, calculate area polygon arcobjects arcgis, draw shape calculate area, macro calculate area bounding line excel, python classification module, calculate area perimeter compound shapes

İşveren Hakkında:
( 1 değerlendirme ) Mississauga, Canada

Proje NO: #17770278



Hello! There's a little mistake in your code, contact me and I will gladly help you with it! :) I'm available right now.

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% CAD
(1 Yorum)

Bu iş için 3 freelancer ortalamada $27 teklif veriyor


I hope to see you in chat. Though I am new to freelancer.com I am an experienced python developer with full-stack knowledge and career. I'm sure I can do this perfectly. Thanks for your kind attention.

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(12 Değerlendirme)

I have lots of experience in Python working on similar projects and would love to work with you. Please dm me if you are interested

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(7 Değerlendirme)