Input entered is of type string. You got that error since you have not converted to integer before you perform arithmetic calculation
x1 = int(input("Please insert the width: "))
class method on two object
|
|
Messages In This Thread |
class method on two object - by gabejohnsonny21 - Apr-22-2020, 06:15 AM
RE: class method on two object - by anbu23 - Apr-22-2020, 06:28 AM
RE: class method on two object - by gabejohnsonny21 - Apr-22-2020, 06:40 AM
RE: class method on two object - by anbu23 - Apr-22-2020, 06:50 AM
RE: class method on two object - by DeaD_EyE - Apr-22-2020, 06:57 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Class and Object HW for cars - Help with error handling for user inputs | jakeshugart | 2 | 296 |
May-09-2024, 05:00 PM Last Post: jakeshugart |
|
Pass an object to a class, then make an object of it and pass again | TomasAm | 11 | 4,659 |
Nov-09-2020, 04:47 PM Last Post: buran |
|
Please, how do I call the method inside this class | Emekadavid | 1 | 1,712 |
Jun-26-2020, 01:26 PM Last Post: Yoriz |
|
Class/Method Confusion | ramadan125 | 1 | 2,636 |
Sep-10-2018, 12:19 AM Last Post: ichabod801 |
|
Class and calling a method | Zatoichi | 3 | 3,137 |
Mar-13-2018, 08:44 PM Last Post: Zatoichi |