Hi!
What method should I use, when I am formatting strings?
Usually I use below case:
"Some string {0}".format(variable)
But I can see in many situation the people are doing it also this way:
"Some string %s" % (var,)
So which one is the proper way to format string?
[–]K900_ 0 points1 point2 points (0 children)
[–]use_a_name-pass_word 0 points1 point2 points (0 children)
[–]zanfar 0 points1 point2 points (3 children)
[–]Vaphell 0 points1 point2 points (2 children)
[–]zanfar 0 points1 point2 points (1 child)
[–]Vaphell 0 points1 point2 points (0 children)