Hey guys im still pretty new to Python and coding in general and am wondering why my code isnt working. I keep getting 2 errors. I am getting pretty frusterated, ive been at this for hours. Thanks
These are the error that I keep receiving. Typeerror: unsupported operand type for ** or pow(): 'str' and 'float' Typeerror: can't multiply sequence by non-int of type 'str'
I only list userChoice1 and 2 because thats where my problem lies atm.
1) Area (Square)
2) Area (Rectangle)
3) Area (Circle)
4) Perimeter (Square)
5) Perimeter (Rectangle)
6) Perimeter (Circle)
7) Exit Program
""")
usersChoice = input (" 1,2,3,4,5,6 OR 7? ")
while usersChoice!="7":
if usersChoice == "1":
print ("You have chosen area (Square)")
length = input("input Length?")
print ("Area is:") , length**2.0
elif usersChoice == "2":
print ("You have chosen area (Rectangle)")
length = input("input length?")
width = input("input width?")
print ("Area is:") , length*width