Skip to content

Commit c5a2a65

Browse files
committed
TR updates, first round
1 parent 8e2c034 commit c5a2a65

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

python-set/disjoint.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
def verify_purchase(age, selection, restricted_products):
2-
if age < 21:
3-
if not selection.isdisjoint(restricted_products):
4-
print("Purchase denied: products restricted to underage users")
5-
else:
6-
print("Purchase approved")
2+
if age < 21 and not selection.isdisjoint(restricted_products):
3+
print("Purchase denied: products restricted to underage users")
74
else:
85
print("Purchase approved")
96

0 commit comments

Comments
 (0)