Question: for python 2.7 can you explain the program what does '%-20s-10s' do as well as what does the last print statment do i am confusd

 for python 2.7 can you explain the program what does '%-20s-10s'

for python 2.7

can you explain the program

what does '%-20s-10s' do

as well as what does the last print statment do

i am confusd on the %

print( '%-20s%-10s' % ('Fahrenheit', "Celsius')) for f in range(0, 101, 10): c=5*(f-32) / 9 + 32 print('%-20.2f%-10.2s' % (f, c))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!