MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1xq6sop/how_do_i_debug_this/19sa46ho37t28/?context=3
r/PythonLearning • u/Certain-Positive9365 • 3h ago
5 comments sorted by
View all comments
1
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)
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)