-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry.py
26 lines (23 loc) · 826 Bytes
/
entry.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
#import dependicies
from datetime import date
import csv
import os
#set the directory where csv will go
os.chdir('/home/solmasters/Documents/Code/daily_review')
#bring in the csv file
with open("progress.csv", "a") as csvfile:
#begin user inputs (must be integers)
print("rate all of these words. Do not input a number greater than 10 or a decimal ")
#rate "create" out of 10
create = int(input('Rate "create" out of 10 '))
#rate "discover" out of 10
discover = int(input('Rate "discover" out of 10 '))
#rate "work" out of 10
work = int(input('Rate "work" out of 10 '))
#rate "relationships" out of 10
relationships = int(input('Rate "relationships" out of 10 '))
#get today's date
date = date.today()
#write to csv
writer = csv.writer(csvfile)
writer.writerow([date, create, discover, work, relationships])