Im getting an error saying I cant multiply sequences by non-int of type(str) which is confusing me because all I wanted to do is multiply the 2 str(input)'s together, I tried finding resources on the internet and nothing to be seen.
length = str(input("Enter length (cm): "))
width = str(input("Enter the width (cm):"))
area = [( width * length )+"cm"]
print("The area of the rectangle is"+ area)
source https://stackoverflow.com/questions/74380281/adding-up-str-input
Comments
Post a Comment