-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHolidayPlan.txt
More file actions
33 lines (31 loc) · 867 Bytes
/
HolidayPlan.txt
File metadata and controls
33 lines (31 loc) · 867 Bytes
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
Holiday Scraper:
main function->saves scraped data to .json
for loop (based on rows):
filters to get data and store it in a list of dictionaries.
Main Program:
*global variables
*class Holidays
*input validation functions:
invalid = False
while invalid:
choice = input (string)
try:
----
invalid = True
exept:
----
*utility functions
while loop (to keep program functioning until the 5th (exit) menu option has been selected)
if( add a holiday ):
name, add to index
if( remove a holiday ):
for i in Objects:
if Objects.name == deletename
.pop
if( save a holiday list ):
for i in Objects:
*save as dict
if( view holidays ):
*lambdas
if( exit ):
*exit