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

(Solved) : 1 Implement Fixed Point Iteration Signature Function P Fp G Po Maxits G Function Handle Po Q35036982 . . . .(Solved) : 1 Implement Fixed Point Iteration Signature Function P Fp G Po Maxits G Function Handle Po Q35036982 . . . .

<p>MATlab help please~!</p><p><img alt="1. Implement fixed-point iteration. Your signature should be function p fp(g, po, maxits) where g is a function handle and po" src="https://media.cheggcdn.com/media%2F7de%2F7de92b43-b759-4282-8eff-7d31fa8ebf38%2FphptMNhvq.png" style="height:190px;width:736px;" aria-describedby="d3f"/></p><p><img alt="(b) g:z cos(