Skip to content

Commit ae08bf8

Browse files
committed
Lab6 in progress
1 parent b6de8e6 commit ae08bf8

File tree

4 files changed

+188
-0
lines changed

4 files changed

+188
-0
lines changed
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
import csv
2+
3+
# with open('location.csv', 'w') as file:
4+
# writer = csv.writer(file)
5+
# writer.writerow(['City', 'State', 'Zip'])
6+
# writer.writerow(['Portland', 'OR', '97202'])
7+
# writer.writerow(['Lake Oswego', 'OR', '97304'])
8+
9+
10+
# with open('location.csv') as file:
11+
# reader = csv.reader(file)
12+
# print(list(reader))
13+
14+
# for row in reader:
15+
# # print(row)
16+
# if len(row) > 1:
17+
# print(row)
18+
19+
20+
21+
# import time
22+
# # print(time.time())
23+
24+
25+
# def send_communication():
26+
# for i in range(30000):
27+
# pass
28+
29+
# start_time = time.time()
30+
# send_communication()
31+
# end_time = time.time()
32+
# duration = end_time - start_time
33+
# # print(duration)
34+
35+
# print(f'It took {duration} seconds to update 30k patients')
36+
37+
38+
39+
# import datetime
40+
41+
# dt = datetime.datetime(2022, 1, 1)
42+
# print(dt)
43+
44+
45+
46+
47+
48+
# from datetime import datetime
49+
# dt = datetime(2022, 1, 1)
50+
# print(dt)
51+
52+
from datetime import datetime
53+
# from django.forms import DateTimeInput
54+
55+
56+
# dt = datetime.strptime("2022/01/01", "%Y/%m/%d")
57+
# print(f'{dt.year}/{dt.month}')
58+
59+
60+
61+
# dt = datetime.now()
62+
# print(dt.strftime("%Y/%m"))
63+
64+
65+
# dt_start = datetime(2022, 1, 1)
66+
# dt_end = datetime.now()
67+
# duration = dt_end - dt_start
68+
# print(duration)
69+
# print('days', duration.days)
70+
# print('seconds', duration.seconds)
71+
# print('total_seconds', duration.total_seconds())
72+
73+
74+
75+
# dt_plus1 = datetime(2022, 1, 1) + timedelta(days=1, seconds=1)
76+
77+
78+
# print(dt_plus1)
79+
80+
81+
82+
import random
83+
84+
# print(random.random(), 'random')
85+
# print(random.randint(1, 25), 'ranint')
86+
# print(random.choice([10, 20, 30, 40]), 'choice')
87+
# print(random.choices([10, 20, 30, 40], k=2), 'choices')
88+
89+
90+
91+
# print(random.choices(['sljkhj'], k=2 ))
92+
# print(''.join(random.choices('sljkhj')))
93+
# print(','.join(random.choices('sljkhj')))
94+
95+
import string
96+
97+
# print(string.ascii_letters)
98+
# print(string.ascii_lowercase)
99+
# print(string.ascii_uppercase)
100+
# print(string.digits)
101+
102+
103+
# print(''.join(random.choices(string.ascii_letters + string.digits, k=7)))
104+
105+
106+
# special_chars = string.punctuation
107+
# print(special_chars)
108+
109+
110+
import webbrowser
111+
print('Checking site')
112+
webbrowser.open('http://pdxcodeguild.com')
113+
114+
115+
116+
117+
118+
119+
120+
121+
122+
123+
124+
125+
126+
127+
128+
129+
130+
131+
132+
133+
134+
135+
136+
137+
138+
139+
140+
141+
142+
143+
144+
145+
146+
147+
148+
149+
150+
151+
152+
153+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import csv
2+
3+
# with open('location.csv', 'w') as file:
4+
# writer = csv.writer(file)
5+
# writer.writerow(['City', 'State', 'Zip'])
6+
# writer.writerow(['Portland', 'OR', '97202'])
7+
# writer.writerow(['Lake Oswego', 'OR', '97304'])
8+
9+
10+
with open('location.csv') as file:
11+
reader = csv.reader(file)
12+
print(list(reader))
13+
14+
for row in reader:
15+
print(row)

code/daniel/06_make_change/location.csv

Whitespace-only changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Ana Runolfsdottir 1-651-947-5883
2+
Frances Hodkiewicz (812) 644-2602
3+
Alice Hills DVM 1-701-918-2306
4+
Dr. Ludwig Wehner V 770-863-2764
5+
Prof. Gianni Larson 1-628-664-6844
6+
Alessia Donnelly 14095791424
7+
Darrell Schultz (361) 913-5529
8+
Prof. Maeve Reichel Jr. 1-463-520-6964
9+
Prof. Marley Ward 1-620-329-7156
10+
Dell Rice II 12708789575
11+
Mr. Norval Reynolds II 1-423-689-8828
12+
Glennie Eichmann 1-703-288-7625
13+
Garett Stokes Sr. (540) 976-8024
14+
Abbigail Klocko 657-673-2829
15+
Josue Wintheiser 13259951373
16+
Miss Noemy Feeney PhD 734-757-2080
17+
Prof. Hettie Kunde 201.474.0600
18+
Mr. Oda Tremblay 1-775-780-6154
19+
Mrs. Bernadette Kris DVM 808.446.9460
20+
Thea Terry 1-432-761-8897

0 commit comments

Comments
 (0)