0

i need help

import Car def main(): # Get the car data. man = input('Enter the Make: ') mod = input('Enter the model number: ') year = int(input('Enter the year: ')) # Create an instance of the CellPhone class. mycar = Car.Car(man, mod, year) # Display the data that was entered. print('Here is the data that you entered:') print(f'Manufacturer: {mycar.get_make()}') print(f'Model Number: {mycar.get_model()}') print(f'Retail Price: ${mycar.get_year():,.2f}') # Call the main function. if __name__ == '__main__': main()

3rd May 2024, 12:07 AM
Maria Gonzalez
Maria Gonzalez - avatar
4 Respostas
+ 4
The way you're accessing the attributes of the Car instance in your main function is an issue. But can you explain a little details about your problem ma'am Maria Gonzalez
3rd May 2024, 2:28 AM
`ᴴᵗᵗየ
`ᴴᵗᵗየ - avatar
+ 3
What is this code supposed to do? What is it doing instead?
3rd May 2024, 12:16 AM
Wilbur Jaywright
Wilbur Jaywright - avatar
+ 1
Im assuming you’re having issue the moment you creat and instance of the cell phone class. Try using Car(man, mod, year). A lil more information on the issue would help us more as well.
3rd May 2024, 11:13 AM
Javed Muckett
Javed Muckett - avatar
+ 1
Takudzwa Michael Chiwa if you actually want to communicate in private about programming, you can use the Sololearn DM system. Trying to communicate on an unmoderated system with someone who is likely a minor puts you in suspicion.
13th May 2024, 3:20 PM
Wilbur Jaywright
Wilbur Jaywright - avatar