In Python, How To Fix Broken Wi-Fi Using Loop And If-Else? I Wish I Could 😄
solutions = [
'Reboot the computer and try to connect',
'Reboot the router and try to connect',
'Make sure the cables between the router & modem are plugged in firmly',
'Move the router to a new location and try to connect',
'Get a new router'
]
print('### Troubleshooting Wifi issue ###')
while True:
step = solutions.pop(0)
print('Step:',step)
if 0 == len(solutions):
break
print('Did that fix the problem?')
ans = input().lower().strip()
if ans and 'y' == ans[0]:
break
Comments
Post a Comment