From 26903a841148272b4c7c6305c02639f9bb9ae8c5 Mon Sep 17 00:00:00 2001 From: cheeks <134818917+leftovertoast@users.noreply.github.com> Date: Wed, 5 Feb 2025 20:45:53 -0500 Subject: [PATCH] Completed Exercise 7-7 Infinity --- Chapter_07/7-07_infinity.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Chapter_07/7-07_infinity.py diff --git a/Chapter_07/7-07_infinity.py b/Chapter_07/7-07_infinity.py new file mode 100644 index 0000000..b951ec9 --- /dev/null +++ b/Chapter_07/7-07_infinity.py @@ -0,0 +1,8 @@ +# Exercise 7-7 Infinity +# Learning Objective: Write an infinite loop. + +num = 1 +myNum = 1 +while num < 100: + print(myNum) + myNum += 1 \ No newline at end of file