Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie needs help
#1
Thumbs Up 
Hello guys,

Im just learning Pyhton and doing a code in Replit.. I think Im doing ok so far but Im stuck on a thing that maybe some one here might help me out with?

So im doing this code where a carpurchaser asks someone what type of car/model/year and miles it has.. and they answer like this:
print("What car and modell?")
car = input()

print("What year is the car?")
year = input ()

print("Okey good, how many miles does it got?")
miles = input() 


print(car + " " +  " " + year+ " " + mile)

print("Oh okey, you got a ’car’ of ’model’-modell, and its from ’year’, but has not driven more than ’mile’, sounds intresting!")
the last print does not show when i run the program.. its just says "car" "model" "year".. not what car/year/model/mile i type in the program.. how come? :P

and also.. is there a way to make so it says "miles" after you put the miles numbers in the code?

I hope you guys get what im trying to explain that I need help with ;P

best regards!
Yoriz write Sep-06-2022, 07:21 PM:
Please post all code, output and errors (in their entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply


Messages In This Thread
Newbie needs help - by dvejsa - Sep-06-2022, 07:09 PM
RE: Newbie needs help - by XavierPlatinum - Sep-06-2022, 07:26 PM
RE: Newbie needs help - by dvejsa - Sep-06-2022, 07:37 PM
RE: Newbie needs help - by deanhystad - Sep-06-2022, 07:42 PM
RE: Newbie needs help - by Yoriz - Sep-06-2022, 07:46 PM
RE: Newbie needs help - by dvejsa - Sep-06-2022, 07:51 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020