For the newbies, here’s a suggestion from my end. Try using fstrings instead of string concatenation.
It’s written like this for example-
number_apples = int(input ())
Print(f”How many apples do I have? I have {number_apples}.”)
This helps much more than string concatenation.
submitted by /u/Indra_Kamikaze
[link] [comments]
r/learnpython For the newbies, here’s a suggestion from my end. Try using fstrings instead of string concatenation. It’s written like this for example- number_apples = int(input ()) Print(f”How many apples do I have? I have {number_apples}.”) This helps much more than string concatenation. submitted by /u/Indra_Kamikaze [link] [comments]
For the newbies, here’s a suggestion from my end. Try using fstrings instead of string concatenation.
It’s written like this for example-
number_apples = int(input ())
Print(f”How many apples do I have? I have {number_apples}.”)
This helps much more than string concatenation.
submitted by /u/Indra_Kamikaze
[link] [comments]