-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParker 2017.py
74 lines (67 loc) · 2.91 KB
/
Parker 2017.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
'''Start Coding on 26/08/2017'''
" (c) 2017 Dewnith Fernando. All rights reserved."
print("DvNET Parker [version 0.1] First Release 2017.08.26")
print("Copyright (c) 2017 Dewnith Fernando. All rights reserved.")
print("")
def ZMAIN():
Userfile = open("Data/username.zdb", 'r')
name = Userfile.read()
print("")
ztext = input("What do you want " + name + ":>")
if ztext == "what is your name":
print("My name is Parker. Version 0.1.")
ZMAIN()
elif ztext == "credits":
print("")
print("+------------------------- CREDITS --------------------------+")
print("+ +")
print("+ * Developer * +")
print("+ M.P.Dewnith Fernando. +")
print("+ +")
print("+ * Special Thank * +")
print("+ Guido Van Rosem +")
print("+ Wijeya Pariganaka Newspaper. +")
print("+ +")
print("+ Copyrights (c) 2017 Dewnith Fernando. All righs reserved. +")
print("+------------------------------------------------------------+")
ZMAIN()
else:
try:
dbf = open("Data/" + ztext + ".zdb", "r")
dbfr = dbf.read()
except IOError:
print("")
print(name + ". Parker, don't know about " + ztext +". But you can add information about " + ztext + "." )
print("If you want do it now type 'y' and press enter." + " Enter for none.")
print("")
abdf = input(name + ", What is your choice :")
if abdf == "y":
print(">", "Ok " + name + ".")
print("----------" + ztext + "----------")
ed = input("> " + name + ", Enter description of " + ztext + ":")
obdf = open("Data/" + ztext + ".zdb", "w+")
obdf.write(ed)
obdf.close()
print(name + ", I saved information about " + ztext + " in my Database.")
ZMAIN()
else:
print("Ok " + name + ".")
ZMAIN()
else:
print(dbfr)
ZMAIN()
try:
Userfile = open("Data/username.zdb", "r")
name = Userfile.read()
except IOError:
print("Hi, you're welcome user.")
nuname = input("Enter your user name here :")
nufile = open("Data/username.zdb", "w+")
nufile.write(nuname)
nufile.close()
ZMAIN()
else:
print("Hi " + name + ", you're welcome")
ZMAIN()
""" Developer : M.P.Dewnith Fernando."""
""" Scripted Date : 2017.08.26 """