Python Forum
What am i doing wrong - math tool box
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What am i doing wrong - math tool box
#8
okay thanks it worked now the only I'm dealing with is a traceback error




1.Square
2.Rectangle
3.Triangle
4.Circle
5.Exit the program

What would you like to do?1
'1'
Square is selected.
Now input side1
Area is
Traceback (most recent call last):
File "C:/Users/tunji/Desktop/projecttwo.py", line 15, in <module>
print ("Area is"),side*side
TypeError: can't multiply sequence by non-int of type 'str'
>>>
Reply


Messages In This Thread
What am i doing wrong - math tool box - by TJOm - Apr-18-2018, 06:59 PM
RE: What am i doing wrong - math tool box - by TJOm - Apr-18-2018, 07:37 PM
RE: What am i doing wrong - math tool box - by TJOm - Apr-18-2018, 07:45 PM
RE: What am i doing wrong - math tool box - by TJOm - Apr-18-2018, 08:06 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020