Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie needs help
#3
(Sep-06-2022, 07:26 PM)XavierPlatinum Wrote:
miles = input()
print(car + " " + " " + year+ " " + mile)    #Are they "miles" or "mile"?
Try using f strings
print(f"{car} {year} {miles} miles")

Thanks bro, it worked! :D

now I only need the "answer part" to work aswell :P
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