-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathexample.py
More file actions
24 lines (19 loc) · 832 Bytes
/
Copy pathexample.py
File metadata and controls
24 lines (19 loc) · 832 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
# Example use after installing the package with:
# pip install mycodebuddyproject
import mycodebuddyproject.get_debug_tips as debug
import mycodebuddyproject.get_help as get_help
import mycodebuddyproject.fun_facts as fun_facts
from mycodebuddyproject.study_timer import StudyTimer
# example uses
print("Get a debugging tip for runtime errors")
print(debug.debug_tip("runtime"))
print("# Get a documentation link for Python")
print(get_help.language_help("python"))
print("Get a fun fact about Python features")
print(fun_facts.get("features"))
print("Start a study timer for 2 minutes")
timer = StudyTimer() # Create an instance of StudyTimer
timer.start(2) # Start a 2-minute study session
timer.pause() # Pause the session
timer.resume() # Resume the session
timer.cancel() # Cancel the session