Skip to content

Commit

Permalink
Merge pull request #3 from madbag/main
Browse files Browse the repository at this point in the history
update 01_22 for simplication
  • Loading branch information
laisbsc authored Apr 22, 2024
2 parents cdd7b53 + 02beaa8 commit 0a18bc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion content/solutions/01_22.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name_1 = "Sandrine"
name_2 = "Cheuk"

print(f"Is {name_1} > 5 and {name_2} < 7 characters? {(len(name_1) > 5) and (len(name_2) < 7)}")
length_1 = len(name_1) > 5
length_2 = len(name_2) < 7

print(f"Is {name_1} > 5 and {name_2} < 7 characters? {length_1 and length_2}")

0 comments on commit 0a18bc2

Please sign in to comment.