Skip to content

Commit cde9e76

Browse files
Add files via upload
1 parent dcd141e commit cde9e76

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

python_study_2/page9/script.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
numbers = [765, 921, 777, 256]
2+
for number in numbers:
3+
print(number)
4+
# When the number variable is 777, print '777 found, stopping loop' and exit the loop
5+
if number == 777:
6+
print("777 found, stopping loop")
7+
break
8+

0 commit comments

Comments
 (0)