Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 13c8b2a

Browse files
committed
stuff
1 parent e2e1649 commit 13c8b2a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎Exercise__for_exercise_1.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Exercise: for exercise 1
2+
3+
# (5/5 points)
4+
# ESTIMATED TIME TO COMPLETE: 5 minutes
5+
6+
# In this problem you'll be given a chance to practice writing some for loops.
7+
8+
# 1. Convert the following code into code that uses a for loop.
9+
10+
# prints 2
11+
# prints 4
12+
# prints 6
13+
# prints 8
14+
# prints 10
15+
# prints "Goodbye!"
16+
17+
for i in range(2, 11, 2):
18+
print(i)
19+
print('Goodbye!')
20+
21+
# Correct

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /