0% found this document useful (0 votes)
227 views2 pages

CYB 130 Week 4 Python LAB 5.20 Step Counter

The document advertises providing complete course papers, including up to 5 papers, 1 discussion question response, and 1 quiz for $150. It instructs customers to email [email protected] to purchase and submit the papers without changes.

Uploaded by

CHRIS D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
227 views2 pages

CYB 130 Week 4 Python LAB 5.20 Step Counter

The document advertises providing complete course papers, including up to 5 papers, 1 discussion question response, and 1 quiz for $150. It instructs customers to email [email protected] to purchase and submit the papers without changes.

Uploaded by

CHRIS D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Don’t have Time to write your papers

We can provide complete course New Papers


at just $150 (upto 5 Papers + one DQ
Response +Quiz)
 

You can submit the papers without any changes


 
Just email us at [email protected]

def steps_to_miles(user_steps):

return user_steps/2000

if __name__ == '__main__':

steps = float(input())

print('{:.2f}'.format(steps_to_miles(steps)))

Code 2
def steps_to_miles(user_steps): #function that convert steps into miles
   miles = float(user_steps)/2000
   return miles

if __name__ == '__main__':
   steps = int(input()) #taking number of steps as user input
   miles = steps_to_miles(steps) #calling steps_to_miles() for calculating miles
   print('{:.2f}'.format(miles)) #printing miles

Code 3
def steps_to_miles(user_steps):
return user_steps / 2000
if __name__ == '__main__':
print('{:.2f}'.format(steps_to_miles(float(input()))))

You might also like