· 6 years ago · Oct 12, 2019, 02:18 PM
1import random
2print("Welcome!")
3
4first_name = ["George", "Jeff", "Paul", "Dwight", "Tyrone", "Janet", "Sandy", "Tammy", "Sam", "Lisa"]
5
6last_name = ["Jackson", "Hadley", "Brown", "Hunt", "Bishop", "Stewart", "Davis", "Mullins", "Smith", "Johnson"]
7
8street_name = ["County", "MLK", "Jackson", "Smith", "Washington"]
9
10street_abr = ["Rd.", "St.", "Ave."]
11
12state_name = ["Florida", "Georgia", "Alabama", "California", "Illinois", "Indiana", "South Carolina", "North Carolina", "Michigan", "New York", "Nevada"]
13
14email_at = ["@yahoo.com", "@gmail.com", "@icloud.com"]
15
16occupation = ["Actor", "Construction Worker", "IT", "Doctor", "Nurse", "Youtuber"]
17
18months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
19
20num_of_st = random.randint(100,9999)
21random_numbers = random.randint(0,9999)
22zip_code = random.randint(10000,99999)
23weight = random.randint(140,230)
24weight2 = random.randint(0,9)
25height = random.randint(4,6)
26height2 = random.randint(0,9)
27year_born = random.randint(1950,2006)
28num_of_months = random.randint(1,31)
29occupation_yrs = 2002 - year_born
30
31first_rand = random.choice(first_name)
32last_rand = random.choice(last_name)
33street_name_rand = random.choice(street_name)
34street_abr_rand = random.choice(street_abr)
35email_rand = random.choice(email_at)
36state_rand = random.choice(state_name)
37occupation_rand = random.choice(occupation)
38months_rand = random.choice(months)
39
40alphabet= ["a", "b", "c", "d", "e", "f", "g", "h" "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
41spec_char = [".", "*", "_", "!", "-"]
42balance = random.randint(1000,5000)
43username = first_rand
44greetings = ["Howdy", "Hello", "Hi", "Hola", "Bonjour", "Whats up"]
45
46new_pass = input("1 - Create password:\n2 - Generate password:\n")
47if new_pass == "1":
48 new_pass = input("\nOkay! Create a new password: ")
49 print("Got it!")
50else:
51 new_pass= random.choice(alphabet) + str(random.randint(1000,9999)) + random.choice(spec_char) + random.choice(alphabet) + str(random.randint(1000,9999)) + random.choice(spec_char) + random.choice(alphabet) + str(random.randint(1000,9999)) + random.choice(spec_char) + random.choice(alphabet)
52 print("Genrerated password:",new_pass)
53
54new_or_gen = input("1 - Create account:\n2 - Generate random account:\n")
55
56if new_or_gen == "1":
57 print("\nOkay, lets create a new account for you. I just need you to fill out your info.")
58 first_name_create = input("\nWhats your first name? ").capitalize()
59 last_name_create = input("Whats your last name? ").capitalize()
60 gender_create = input("Male or Female? ").capitalize()
61 if gender_create == "Male":
62 print("Male")
63 elif gender_create == "Female":
64 print("Female")
65 else:
66 print("Not a gender")
67 birthday_create = input("When is your birthday? (Month Day, Year) ")
68 state_create = input("What state do you live in? ").capitalize()
69 city_create = input("Name of the city? ").capitalize()
70 street_num_create = input("Number of the house/apartment you live in? ")
71 street_create = input("Whats the name of your street? ").capitalize()
72 street_abbr_create = input("And the abbreviation of your street - St, Rd, Ave.? ")
73 zip_code_create = input("Zip code? ")
74 email_create = input("Whats your email? ").lower()
75 occupation_create = input("Occupation? ")
76 occupation_yrs_create = input("And the length of this occupation? ")
77 height_create = input("Whats your height? ")
78 weight_create = input("How much do you weigh? ")
79
80 print("\nWelcome", first_name_create)
81 print("Name:", first_name_create, last_name_create)
82 print("Gender:", gender_create)
83 print("Birthday:", birthday_create)
84 print("Address:", street_num_create, street_create, street_abbr_create + ",", state_create, zip_code_create)
85 print("Email:", email_create)
86 print("Occupation:", occupation_create, "- Length:", occupation_yrs_create)
87 print("Height:", height_create + "in.")
88 print("Weight:", weight_create + "lbs.")
89 password = input("\nEnter your password: ")
90 if new_pass == password:
91 if gender_create == "Male" or gender_create == "male":
92 print("\n" + random.choice(greetings) + " Mr." + first_name_create)
93 else:
94 print("\n" + random.choice(greetings) + " Ms." + first_name_create)
95 my_menu = input("\nWhat would you like to do? \n1 - See balance:\n2 - Change password:\n3 - Add number:\n4 - Change number:\n")
96 if my_menu == "1":
97 print("Your balance is $" + str(balance))
98 balance = balance
99 balanceOption = input("1 - Withdraw:\n2 - Deposit:\n").lower()
100 if balanceOption == "1":
101 withdrawal = input("How much are you withdrawing?\n")
102 withdraw_balance = float(balance) - float(withdrawal)
103 balance = withdraw_balance
104 print("You withdrew $" + str(withdrawal))
105 print("Your new balance is $" + str(balance))
106 if float(balance) < float(0):
107 print("Your account is negative!")
108 if balanceOption == "2":
109 deposit = input("How much would you like to deposit?\n").lower()
110 deposited = float(balance) + float(deposit)
111 balance = deposited
112 print("You deposited $" + str(deposit))
113 print("Your new balance is $" + str(balance))
114 if my_menu == "2":
115 new_pass2 = input("What would you like to change your password to? ")
116 print("Got it! Your new password is", new_pass2)
117 new_pass = new_pass2
118 elif my_menu == "3":
119 new_number = input("Enter your number: ")
120 print("New number added: " + new_number)
121 elif my_menu == "4":
122 change_num = input("What would you like to change your number to? ")
123 print("Gotcha! Your new number is: " + change_num)
124
125elif new_or_gen == "2":
126 if first_rand == "George" or first_rand == "Jeff" or first_rand == "Paul" or first_rand == "Dwight" or first_rand == "Tyrone":
127 print("Name:", first_rand, last_rand)
128 print("Gender:", "Male")
129 else:
130 print("Name:", first_rand, last_rand)
131 print("Gender:", "Female")
132 print("Birthday:", months_rand, str(num_of_months) + ",", str(year_born))
133 print("Address:", str(num_of_st), street_name_rand, street_abr_rand + ",", state_rand, str(zip_code))
134 print("Email:", first_rand.lower() + "_" + last_rand.lower() + str(random_numbers) + email_rand)
135 print("Occupation:", occupation_rand, "-", "Length:", str(occupation_yrs), "years.")
136 print("Height:", str(height) + "\'" + str(height2) + "in")
137 print("Weight:", str(weight) + "." + str(weight2) + "lbs")
138 password = input("\nEnter your password: ")
139 if new_pass == password:
140 if username == "George" or username == "Jeff" or username == "Paul" or username == "Dwight" or username == "Tyrone":
141 print("\n" + random.choice(greetings) + " Mr." + username)
142 elif username == "Janet" or username == "Sandy" or username == "Tammy" or username == "Sam" or username == "Lisa":
143 print(random.choice(greetings) + " Ms." + username)
144 else:
145 print(random.choice(greetings), first_name_create)
146 my_menu = input("\nWhat would you like to do? \n1 - See balance:\n2 - Change password:\n3 - Add number:\n4 - Change number:\n")
147 if my_menu == "1":
148 print("Your balance is $" + str(balance))
149 balance = balance
150 balanceOption = input("1 - Withdraw:\n2 - Deposit:\n").lower()
151 if balanceOption == "1":
152 withdrawal = input("How much are you withdrawing?\n")
153 withdraw_balance = float(balance) - float(withdrawal)
154 balance = withdraw_balance
155 print("You withdrew $" + str(withdrawal))
156 print("Your new balance is $" + str(balance))
157 if float(balance) < float(0):
158 print("Your account is $" + str(balance))
159 print("Your account is negative!")
160 if balanceOption == "2":
161 deposit = input("How much would you like to deposit?\n").lower()
162 deposited = float(balance) + float(deposit)
163 balance = deposited
164 print("You deposited $" + str(deposit))
165 print("Your new balance is $" + str(balance))
166 if my_menu == "2":
167 new_pass2 = input("What would you like to change your password to? ")
168 print("Got it! Your new password is", new_pass2)
169 new_pass = new_pass2
170 elif my_menu == "3":
171 new_number = input("Enter your number: ")
172 print("New number added: " + new_number)
173 elif my_menu == "4":
174 change_num = input("What would you like to change your number to? ")
175 print("Gotcha! Your new number is: " + change_num)
176else:
177 print("Error")