blob: 4d40ff0e28459e375353457b381cbcd7f09efae2 [file] [log] [blame]
Eric Parke9b663b2019-05-09 18:17:11 +08001import json
2
3user_list = []
4
5user = {}
6
7user["name"] = input("Name: ")
8user["email"] = input("Email: ")
9user["device"] = []
10
11while True:
12 device_name = input("Device codename (type -1 to end): ")
13 if device_name == "-1":
14 break
15 user["device"].append(device_name)
16
17user_list.append(user)
18
19print("Finished! Please give the following output to Eric:")
20print(json.dumps(user_list, indent=4))