+ 1
What is the difference between an f-string and a string.format() method?
In python, what is different when we use f-string and the format method on a string. Please tell if both works similarly or is there any difference in both's working.
2 Réponses
+ 2
Here are my thoughts on it:
https://code.sololearn.com/cbE56spfw4PC/?ref=app
0
Both are used for the same thing. F strings are just better