Advertisement
DrAungWinHtut

physics.py

Mar 5th, 2023
668
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. distance = input('Enter Distance of your travel in miles: ')
  2. distance = float(distance)
  3. distance = distance * 1.069
  4. time = input('Enter period of your travel in hours: ')
  5. time = float(time)
  6. speed = distance/time
  7. print('speed of car is : {} km per hour\n for distance = {} km and time = {} hour'.format(
  8.     speed, distance, time))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement