0
mirror of https://github.com/ltian059/Graduation-Project.git synced 2025-02-05 11:28:06 +00:00
itian059-grad-project/Summer 2024 Health Monitoring - Charlie's Work/Charlie_Code/Data Collection/KeyboardInterrupt_Test.py
2024-12-04 12:46:40 -05:00

15 lines
306 B
Python

# -*- coding: utf-8 -*-
"""
Created on Wed May 25 11:48:01 2022
@author: owenh
"""
try:
while True:
print("Program is running")
except KeyboardInterrupt:
print("Oh! you pressed CTRL + C.")
print("Program interrupted.")
finally:
print("This was an important code, ran at the end.")