This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
def main(): | |
running = True | |
while running: | |
print('Enter a speed in m/s or as a fraction of the speed of light.') | |
print('m/s in the format: x m/s, fraction in the format 0.x') |