Beginner Classes – Calling a variable name in a function and if I used a try/except properly
Beginner Classes – Calling a variable name in a function and if I used a try/except properly Question: I just started learning Python/coding in general. I tried to find an answer to this but couldn’t. So I created this code for a Class "Vehicle" in my lab: class Vehicle(object): def __init__(self, maxspeed, mileage, color="white"): self.maxspeed=maxspeed; …