diff options
author | mlot <petri-rush-curvy@duck.com> | 2025-06-06 13:40:57 -0400 |
---|---|---|
committer | mlot <petri-rush-curvy@duck.com> | 2025-06-06 13:40:57 -0400 |
commit | 75a42ec54dbf721caa659ddf02c1f46fc2cb4bef (patch) | |
tree | 84be794a2481e356a7784557a6f9fb6fbf29cfdd /misc/validateInput.py |
Diffstat (limited to 'misc/validateInput.py')
-rw-r--r-- | misc/validateInput.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/validateInput.py b/misc/validateInput.py new file mode 100644 index 0000000..36c4f0d --- /dev/null +++ b/misc/validateInput.py @@ -0,0 +1,9 @@ +# Validate input + +while True: + print('Enter your age:') + age = input() + if age.isdecimal(): + break + print('Pleas enter a number for your age.') + |