Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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' 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started