Files
stuff/old/activity2-transfer.py

42 lines
1.3 KiB
Python
Raw Normal View History

2026-02-20 11:42:22 +11:00
# Created by Maxwell Jeffress on 13/02/2026
# Helps troubleshoot stuff on a computer
def is_issue_fixed():
userInput = input("Was the issue fixed? (yes/no) ")
if userInput.lower() in ["y", "yes", "ye"]:
return True
else:
return False
def finish():
print("Goody! Thanks for using the troubleshooter")
def power_issue():
print("If it's a laptop, does the battery have charge?")
print("If it's a desktop, is the power cord plugged in correctly?")
print("Try connecting the power cord.")
def power_issue_2():
print("There might be an internal issue with the computer.")
print("If you'")
print("What is your issue? Type the number associated with the issue")
print(" 1) No power")
print(" 2) No sound")
print(" 3) No internet access")
while True:
option = input("Choose a number (between 1 and 3)")
match option.lower():
case "1" | "no power" | "power" | "power not working":
power_issue()
if is_issue_fixed():
finish()
power_issue_2()
case "2" | "no sound" | "sound" | "sound not working":
pass
case "3" | "no internet" | "no internet access" | "internet" | "internet not working":
pass