-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcryptocurrency.py
38 lines (29 loc) · 1.27 KB
/
cryptocurrency.py
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
#-----------------------------------------------------------------
# This script is for the user to select the cryptocurrency of
# interest to view. It includes a check to make sure that the
# only entered keys are 1 - 6.
# It then returns the valid entered key.
# Author: Erv
#------------------------------------------------------------------
# import webbrowser and requests
def crypt_peep():
print("Selct the cyprtocurrency.")
print("Press '1' for Bitcoin(BTC)")
print("Press '2' for Ethereum(ETH)")
print("Press '3' for Litecoin(LTC)")
print("Press '4' for Ripple(XRP)")
print("Press '5' for Eos(EOS)")
print("Press '6' for Dash(DASH)")
print("--------------------------------------------------------------")
choice = input(str("'1', '2', '3', '4', '5', '6': "))
while choice != '1' and choice != '2' and choice != '3' and choice != '4' and choice != '5' and choice != '6':
print("Invalid choice ")
print("Press '1' for Bitcoin(BTC)")
print("Press '2' for Ethereum(ETH)")
print("Press '3' for Litecoin(LTC)")
print("Press '4' for Ripple(XRP)")
print("Press '5' for Eos(EOS)")
print("Press '6' for Dash(DASH)")
print("--------------------------------------------------------------")
choice = input(str("'1', '2', '3', '4', '5', '6': "))
return choice