103k views
23 votes
You want the output to be left justified in a field that is nine characters wide. What format string do you need? print('{:}' .format(23)

1 Answer

0 votes

Answer:

1. <

2. 9

Step-by-step explanation:

'{:<9}' .format(23)

The less than symbol left justifies.

The '9' specifies the field width.

and because i got it right on edge.

User NeplatnyUdaj
by
4.9k points