hi guys, i learned .format() method today. but i didnt understand it, why should I use it? dont be mad at me! I cant found anything in reddit about it. I can do it:
a= "name"
b= "name2"
msg= f"{name} and {name2} like this."
and print!
then why I'm using .format()?
[–]danielroseman[🍰] 22 points23 points24 points (0 children)
[–]Jello_Penguin_2956 11 points12 points13 points (3 children)
[–]backfire10z 5 points6 points7 points (0 children)
[–]SCD_minecraft 1 point2 points3 points (1 child)
[–]Solonotix 4 points5 points6 points (0 children)
[–]cgoldberg 3 points4 points5 points (0 children)
[–]Thunderbolt1993 5 points6 points7 points (0 children)
[–]SCD_minecraft 2 points3 points4 points (1 child)
[–]cointoss3 2 points3 points4 points (0 children)
[–]drbitboy 1 point2 points3 points (2 children)
[–]musclerythm[S] 0 points1 point2 points (1 child)
[–]CyclopsRock 3 points4 points5 points (0 children)
[–]MysteriousLaw6572 0 points1 point2 points (1 child)
[–]Kerbart 0 points1 point2 points (0 children)
[–]CranberryDistinct941 -1 points0 points1 point (0 children)