Skip to content

Commit 27b8475

Browse files
committed
TR updates
1 parent 4b0e71f commit 27b8475

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

python-set-comprehension/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
colors = {"blue", "red", "green", "orange"}
1+
colors = {"blue", "red", "green", "orange", "green"}
22
print(colors)
33
colors.add("purple")
44
print(colors)

python-set-comprehension/emails.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
emails = [
1+
emails = {
22
33
44
5-
65
76
87
9-
]
8+
}
109

1110
print({email.strip().lower() for email in emails})

python-set-comprehension/tools.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
print("python".lower() in tools_set)
66
print("Pandas".lower() in tools_set)
77
print("Numpy".lower() in tools_set)
8-
print("Numpy".lower() in tools_set)

0 commit comments

Comments
 (0)