Hello. I am having trouble with an assignment. When I run the program, it says: TypeError: can't multiply sequence by non-int of type 'float' on line 13. This is the code: # Momtahin Chowdhury #...


Hello. I am having trouble with an assignment. When I run the program, it says: TypeError: can't multiply sequence by non-int of type 'float' on line 13.


This is the code:


# Momtahin Chowdhury
# 8/8/2019
# Purpose: converting measurements.


def convertMeters(I):
# Meter to Inches formula
# I = m * 39.37
return I


def main():

m = [13, 55, 100]


inches = m*39.37


m = float(input("Enter the meters to be converted to inches: "))
i = convertMeters


print("The absolute value of " + str(m) + " is " + ".")


main()




Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here