-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_vip.py
34 lines (32 loc) · 845 Bytes
/
add_vip.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
import json
from vip import vip as vip
print(vip)
def add_vip():
# existing = f.read()
# print(artists)
while True:
f = open('vip.py', 'w')
name = input("Add Name: ")
if str(name) == "quit":
f.write("vip = ")
f.write(str(vip))
f.close()
return False
else:
cell = input("Add Number: ")
vip[name] = cell
print(vip)
f.write("vip = ")
f.write(str(artists))
f.close()
add_vip()
# with open("artists.json") as f:
# ACCESS DATA AS JSON OBJECT
# content = f.read()
# print(type(content))
# print(content)
# ACCESS DATA AS PYTHON OBJECT
# content = json.load(f)
# print(content)
# print(type(content))
# f.close()