|
1 |
| -"""a basic calendar that the user will be able to interact with from the command line. The user should be able to choose to: |
2 |
| -
|
3 |
| -View the calendar |
4 |
| -Add an event to the calendar |
5 |
| -Update an existing event |
6 |
| -Delete an existing event |
7 |
| -The program should behave in the following way: |
8 |
| -
|
9 |
| -Print a welcome message to the user |
10 |
| -Prompt the user to view, add, update, or delete an event on the calendar |
11 |
| -Depending on the user's input: view, add, update, or delete an event on the calendar |
12 |
| -The program should never terminate unless the user decides to exit""" |
| 1 | +# A basic calendar that the user will be able to interact with from the command line. The user should be able to choose to: |
| 2 | +# |
| 3 | +# View the calendar |
| 4 | +# Add an event to the calendar |
| 5 | +# Update an existing event |
| 6 | +# Delete an existing event |
| 7 | +# The program should behave in the following way: |
| 8 | +# |
| 9 | +# Print a welcome message to the user |
| 10 | +# Prompt the user to view, add, update, or delete an event on the calendar |
| 11 | +# Depending on the user's input: view, add, update, or delete an event on the calendar |
| 12 | +# The program should never terminate unless the user decides to exit |
13 | 13 |
|
14 | 14 | from time import sleep, strftime
|
15 | 15 |
|
|
20 | 20 | def welcome():
|
21 | 21 | print "Welcome " + name + "."
|
22 | 22 | print "The calendar is opening..."
|
23 |
| - sleep(1) |
| 23 | + sleep(1) #Adds a second before printing the next line. |
24 | 24 | print "Today is: " + strftime("%A %B %d, %Y")
|
25 | 25 | print "The time is: " + strftime("%H %m %S")
|
26 | 26 | print "What would you like to do?"
|
|
0 commit comments