Repository navigation
Expand file tree
/
Copy pathMistaken-ator.py
More file actions
91 lines (79 loc) · 2.24 KB
/
Copy pathMistaken-ator.py
File metadata and controls
91 lines (79 loc) · 2.24 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Importing repositries
import csv
import random
# DEBUG
#task_number = random.randint(0, 10) #Giving me random lines
# Importing routine file
raw_morning_data = open('morn_data.csv') #importing the data raw
read_morning_data = csv.reader(raw_morning_data) #reading the data raw
row = list(read_morning_data) #creating each data row
row_count = len(row) #the total number of rows in the list
#THIS IS THE MONEY SHOT BABY
#print(row) #clearing the line
#string_row = str(row[task_number])[2:-2]
#print(string_row)
# Setting initiated variables / RANDOM NUMBERS
total_tasks = random.randint(0, 10) #choosing between 0 - 10
task_number = random.randint(0, total_tasks) #choosing between 0 - 10
task_counter = total_tasks
#setting constant variables
x = 1
total_time = 0
'''
def routines(x):
print(x)
x = x -1
#print("ROUTINE RUNNING!")
print(x)
global task_counter = int(x)
#string_row = str(row[task_number])[2:-2]
#print(string_row)
'''
'''
def mainloop(task_counter):
if(task_counter != 0):
while task_counter != 0:
routines(task_counter)
print("does not equal")
print(task_counter)
else:
print("All done!")
'''
'''
while task_counter != int(0):
routines(task_counter)
#task_counter = int(x)
#print("does not equal")
print(task_counter)
break
else:
print("All done!")
'''
# START - program introduction
print()
print(r"Good morning, todays morning routine consists of", total_tasks, "tasks.")
print()
#print(task_counter)
#mainloop(task_counter)
#if(task_counter != 0):
while task_counter != 0:
time = random.randint(1, total_tasks) #choosing between 0 - 10
total_time = total_time + time
str_time = "(" + str(time) + 'min)'
task_counter = task_counter -1
#print(task_counter)
y = str(x) + "."
#THIS IS THE MONEY SHOT BABY
#print(row) #clearing the line
task_number = random.randint(0, total_tasks) #choosing between 0 - total
string_row = str(row[task_number])[2:-2]
#print(string_row)
print(y, string_row, str_time)
x = x +1
#break
else:
#print("All done!")
print(" ")
final_total_time = "Todays morning routine will take: " + str(total_time) + " min's"
print(final_total_time)
print(" ")