MCPcopy Create free account
hub / github.com/LinkedInLearning/learning-python-2896241 / main

Function main

Ch2 - Basics/loops_start.py:7–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def main():
8 x = 0
9
10 # TODO: define a while loop
11
12
13 # TODO: define a for loop
14
15
16 # TODO: use a for loop over a collection
17 days = ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]
18
19
20 # TODO: use the break and continue statements
21
22
23 # TODO: using the enumerate() function to get index
24
25
26if __name__ == "__main__":

Callers 1

loops_start.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected