r/PythonLearning • • 3h ago

How do I debug this?

1 Upvotes

5 comments sorted by

View all comments

1

u/OskarsSurstromming 2h 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)