365 Days of Python: Day #41 — Lazy Loopholes
2 min readDec 27, 2022
Laziness can be a debilitating disease. It can prevent you from getting out of bed, being adventurous, and even succeeding in your professional life.
However, laziness can also be the key to innovation.
Day #41 (12/25/2022)
“I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.”
— Bill Gates
Accomplishments
- Added a
clear()
function to my PotW (see below)
def clear():
if os.name == "posix":
os.system("clear")
else:
os.system("cls")
- Wrote the
introduction()
function for my PotW (see below)
def introduction():
clear()
print("Welcome to 8-Bit Image Converter!")
print("This program will convert any image to an 8-bit version of itself.")
next()
- Added a
next()
function to my PotW (see below)
def next():
user_continue = input("\nAre you ready to continue? (Y/N)\n")
if user_continue == "Y":
clear()
image()
elif user_continue == "N":
clear()
exit()
else:
print("ERROR: INVALID INPUT")
next()
- Wrote the
image()
function for my PotW (see…