Skip to content

Commit 8ef6dcf

Browse files
committed
Add materials for the indent tutorial
1 parent bc04c40 commit 8ef6dcf

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

how-to-indent-in-python/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# How to Properly Indent Python Code
2+
3+
This folder contains sample code for the Real Python tutorial [How to Properly Indent Python Code](https://realpython.com/how-to-indent-in-python/).
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
lucky_number = 7
2+
for number in range(10):
3+
if number == lucky_number:
4+
print("Found the lucky number!")
5+
else:
6+
print(f"{number} is not my lucky number.")
7+
8+
print("Done.")

0 commit comments

Comments
 (0)