Skip to content

Instantly share code, notes, and snippets.

@HarryCoops
HarryCoops / timedi.py
Last active August 8, 2022 13:17
Time dilation calculator in python
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')