Skip to content

Instantly share code, notes, and snippets.

@computer-tutor
Created April 28, 2020 04:28
Show Gist options
  • Save computer-tutor/7b18530385c61c08030a1c53cf5835d9 to your computer and use it in GitHub Desktop.
Save computer-tutor/7b18530385c61c08030a1c53cf5835d9 to your computer and use it in GitHub Desktop.
t1 = input('Welcome to Computer Tutor!\n Please enter the first time:')
t2 = input('Please enter thr second time:')
print(int(t2[:2])-int(t1[:2]),'hours', int(t2[2:])-int(t1[2:]),'minutes')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment