Course Solutions Uncategorized (Solved) : Get Help Please Keep Getting Invalid Syntax Def Addnewvehicle Selfcolor Int Input Enter Co Q29263215 . . . .

(Solved) : Get Help Please Keep Getting Invalid Syntax Def Addnewvehicle Selfcolor Int Input Enter Co Q29263215 . . . .

 

Can i get some help please. I keep getting a invalid syntax onthe def addNewVehicle (self.__color = int(input(‘Enter color: ‘))It is highlighting the self part in red. here is the rest of mycode.

class Automobile:

# constructor

def __init__(self, make, model, color, year, mileage):

self.__make = make

self.__model = model

self.__color = color

self.__year = year

self.__mileage = mileage

# add method

def addNewVehicle(self):

self.__make = int(input(‘Enter make: ‘))

self.__model = int(int(input(‘Enter model: ‘))

self.__color = int(input(‘Enter color: ‘))

self.__year = int(input(‘Enter year: ‘))

self.__mileage = int(input(‘Enter mileage: ‘))

def removeVehicle(self):

self.__make = “”

self.__model = “”

self.__color = “”

self.__year = “”

self.__mileage = “”

print(” removed! “)

def updateVehicle(self):

self.__make = int(input(‘Enter squarefeet: ‘))

self.__model= int(input(‘Enter adress: ‘))

self.__color = int(input(‘Enter city: ‘))

self.__year =

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post