Last active
May 1, 2020 10:46
-
-
Save raeq/744c9175157a30d507bd50b30cc0fa74 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
students = {"a", "b", "c"} | |
if bool(students): | |
print (f"We have {len(students)} students in this class.") | |
else: | |
print ("We have no students in this class.") | |
stock = {} | |
if stock: | |
print (f"We have {len(stock)} items in stock.") | |
else: | |
print ("We have no stock.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment