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.37return Idef main():m = [13, 55, 100]inches = m*39.37m = float(input("Enter the meters to be converted to inches: "))i = convertMetersprint("The absolute value of " + str(m) + " is " + ".")main()
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here