We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a2a65 commit ff2a182Copy full SHA for ff2a182
python-set/disjoint.py
@@ -1,6 +1,6 @@
1
def verify_purchase(age, selection, restricted_products):
2
if age < 21 and not selection.isdisjoint(restricted_products):
3
- print("Purchase denied: products restricted to underage users")
+ print("Purchase denied: selection includes age-restricted products")
4
else:
5
print("Purchase approved")
6
0 commit comments