Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Basics/Exercise/9_for/9_for_exercise.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
if i == 4: # 4 because the index starts from 0
print("Hurray! You are a rock star! You just finished 5 km race!")
else:
print("You didn't finish 5 km race but hey congrats anyways! You still ran {i+1} miles")
print(f"You didn't finish 5 km race but hey congrats anyways! You still ran {i+1} miles")

# 5. Write a program that prints following shape
# ```
Expand All @@ -77,4 +77,4 @@
s = ''
for j in range(i):
s += '*'
print(s)
print(s)