r/PythonLearning • • 17d ago

How do I debug this?

im trying to make it show the day it is on, im pretty stuck on it and I would love some help!
2 Upvotes

5 comments sorted by

View all comments

1

u/OskarsSurstromming 17d ago

Input works differently to the print statement, where you could write

print(" how many something", days, "yappadappadoo") You cannot write

Input("hehe", days, "yadda")

Since input only takes one value as argument, instead you want your days to be in the string that you pass to input.

This is where you use an fstring (format string)

Some_fstring = f"hello, there are {days} days in a week"

Input(Some_fstring)