-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathassignments.py
More file actions
34 lines (25 loc) · 761 Bytes
/
assignments.py
File metadata and controls
34 lines (25 loc) · 761 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
from date import Date
class Assignments:
def __init__(self):
self.name = "Untitled"
self.start_date = Date()
self.due_date = Date()
self.end_date = Date()
self.long_display = Date
def prompt(self):
self.name = input("Enter Name: ")
print("Start Date: ")
self.start_date.prompt()
print("Due date: ")
self.due_date.prompt()
print("End date: ")
self.end_date.prompt()
def display(self):
print("Assignment: {}".format(self.name))
print("Start Date: ")
self.start_date.display()
print("Due Date: ")
self.due_date.display()
print("End Date: ")
self.end_date.display()
self.long_display