241,081 views
36 votes
36 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)

User Russbishop
by
2.8k points

1 Answer

14 votes
14 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 JessieArr
by
3.0k points