-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
26 lines (24 loc) · 875 Bytes
/
main.py
File metadata and controls
26 lines (24 loc) · 875 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
import argparse
from ex1_navigation import exercise1
from ex2_conditional_breakpoints import exercise2
from ex3_variables_and_watches import exercise3
from ex4_evaluate_expressions import exercise4
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--exercise', type=int, default=0, help='Number of the current exercise')
args = parser.parse_args()
# TODO: Set a breakpoint in the following line
if args.exercise == 0:
print("You're done with exercise 0!")
elif args.exercise == 1:
# TODO: Step into this function
exercise1()
elif args.exercise == 2:
# TODO: Step into this function
exercise2()
elif args.exercise == 3:
# TODO: Step into this function
exercise3()
elif args.exercise == 4:
# TODO: Step into this function
exercise4()