-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtroubleshoot2.py
More file actions
41 lines (35 loc) · 1.35 KB
/
troubleshoot2.py
File metadata and controls
41 lines (35 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 8 21:41:04 2018
@author: Urchaug
"""
print("help! my computer doesn't work!")
done= False
while not done:
print("does the computer make any sounds (fans,etc.)")
choice=input("or show any lights? (y/n): ")
if choice == 'n':
choice = input("is it plugged in? (y/n): ")
if choice == 'n':
print("plug it in.")
else:
choice=input("is the switch in the \"on\" position? (y/n): ")
if choice == 'n':
print("turn it on.")
else:
choice=input("does the computer have a fuse? (y/n):")
if choice =='n':
choice =input("is the outlet ok? (y/n): ")
if choice=='n':
print("check the outlet's circuit")
print("breaker or fuse. move to a")
print("new outlet,if necessary. ")
else:
print("please consult a service technician.")
done = True
else:
print("check the fuse . replace if ")
print("necessary")
else:
print("please consult a service technician.")
done = True