I'm trying to make a format string that does something like the following.
I lost 10 turtles Total: 20 Turtles
I lost 5 turtles Total: 15 Turtles
I came up with this string "I lost {:>2} {:<13}Total:{:<}".format(10,"turtles",20)
is there anyway to get rid of the {:<13}
and [,"turtles"]
but still produce the same result?
Put
turtles
inside the format string: