Skip to content

Commit

Permalink
TR updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lpozo committed Nov 8, 2024
1 parent 4b0e71f commit 27b8475
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python-set-comprehension/colors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
colors = {"blue", "red", "green", "orange"}
colors = {"blue", "red", "green", "orange", "green"}
print(colors)
colors.add("purple")
print(colors)
5 changes: 2 additions & 3 deletions python-set-comprehension/emails.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
emails = [
emails = {
" [email protected] ",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
" [email protected]",
"[email protected]",
]
}

print({email.strip().lower() for email in emails})
1 change: 0 additions & 1 deletion python-set-comprehension/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
print("python".lower() in tools_set)
print("Pandas".lower() in tools_set)
print("Numpy".lower() in tools_set)
print("Numpy".lower() in tools_set)

0 comments on commit 27b8475

Please sign in to comment.