Skip to content

Commit 4eedd68

Browse files
committed
Fix linter issues
1 parent 437ec88 commit 4eedd68

4 files changed

Lines changed: 21 additions & 16 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
words = ["Hello", "World!", "I", "am", "a", "Pythonista!"]
22

3-
print("One Word by Line:\n" + f"{'\n'.join(words)}")
3+
# Uncomment the following line and run it in Python 3.12
4+
# print("One Word by Line:\n" + f"{'\n'.join(words)}")

python312-preview-f-string/comments.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"job": "Python Developer",
55
}
66

7-
f"""Storing employee's data: {
8-
employee['name'].upper() # Always uppercase name before storing
9-
}"""
7+
# Uncomment the following code and run it in Python 3.12
8+
# f"""Storing employee's data: {
9+
# employee['name'].upper() # Always uppercase name before storing
10+
# }"""
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
f"{
2-
f"{
3-
f"{
4-
f"{
5-
f"{
6-
f"Deeply nested f-string!"
7-
}"
8-
}"
9-
}"
10-
}"
11-
}"
1+
# Uncomment the following code and run it in Python 3.12
2+
3+
# f"{
4+
# f"{
5+
# f"{
6+
# f"{
7+
# f"{
8+
# f"Deeply nested f-string!"
9+
# }"
10+
# }"
11+
# }"
12+
# }"
13+
# }"

python312-preview-f-string/quotes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
"job": "Python Developer",
55
}
66

7-
f"Employee: {employee["name"]}"
7+
# Uncomment the following line and run it in Python 3.12
8+
# f"Employee: {employee["name"]}"

0 commit comments

Comments
 (0)