diff --git a/lib/__pycache__/looping.cpython-38.pyc b/lib/__pycache__/looping.cpython-38.pyc new file mode 100644 index 000000000..e73012513 Binary files /dev/null and b/lib/__pycache__/looping.cpython-38.pyc differ diff --git a/lib/looping.py b/lib/looping.py index 1b4ce5f0c..83a00553a 100644 --- a/lib/looping.py +++ b/lib/looping.py @@ -2,12 +2,29 @@ def happy_new_year(): # code goes here! - pass + i = 10 + while i > 0: + print(f"{i}") + i -= 1 + print("Happy New Year!") def square_integers(int_list): # code goes here! - pass + squared_integers = [] + for i in int_list: + squared_integers.append(i ** 2) + return squared_integers + + def fizzbuzz(): # code goes here! - pass + for i in range(1, 101): + if i % 3 == 0 and i % 5 == 0: + print("FizzBuzz") + elif i % 3 == 0: + print("Fizz") + elif i % 5 == 0: + print("Buzz") + else: + print(i) \ No newline at end of file diff --git a/lib/testing/__pycache__/conftest.cpython-38-pytest-8.3.4.pyc b/lib/testing/__pycache__/conftest.cpython-38-pytest-8.3.4.pyc new file mode 100644 index 000000000..0a9966878 Binary files /dev/null and b/lib/testing/__pycache__/conftest.cpython-38-pytest-8.3.4.pyc differ diff --git a/lib/testing/__pycache__/looping_test.cpython-38-pytest-8.3.4.pyc b/lib/testing/__pycache__/looping_test.cpython-38-pytest-8.3.4.pyc new file mode 100644 index 000000000..2ff5dbb1c Binary files /dev/null and b/lib/testing/__pycache__/looping_test.cpython-38-pytest-8.3.4.pyc differ