Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- from calendar import Calendar
- if __name__ == '__main__':
- calendar_object = Calendar()
- display = calendar_object.make_calendar()
- while True:
- print(display)
- command = input("Input: ")
- if command == '.calendar':
- display = calendar_object.make_calendar()
- elif command == ".week":
- calendar_object.next_week()
- display = calendar_object.make_calendar()
- elif command == ".help":
- display = """
- .calendar: changes display to thr calendar
- .week: proceeds to the next week
- """
- os.system('cls')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement