Last active
December 10, 2023 14:01
-
-
Save kennethreitz/01926dc7e4f67e9fde7a4839a38a402e to your computer and use it in GitHub Desktop.
This file contains 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
import random | |
def spiritual_gifts(): | |
# Define the community of believers | |
believers = [] | |
# Initialize the gifts of the Spirit | |
possible_gifts = ["Prophecy", "Serving", "Teaching", "Exhortation", "Giving", "Leadership", "Mercy"] | |
gifts_of_spirit = {} | |
# Populate the community with believers | |
for member in range(1, 101): | |
believers.append(f'Believer {member}') | |
# Distribute spiritual gifts among believers | |
for believer in believers: | |
gift = random.choice(possible_gifts) | |
gifts_of_spirit[believer] = gift | |
# Emphasize the unity of believers | |
body_of_believers = len(believers) | |
# Highlight the message | |
print(f'In our community of {body_of_believers} believers, each is bestowed with a gift of the Spirit:') | |
for believer, gift in gifts_of_spirit.items(): | |
print(f'- {believer}: {gift}') | |
if __name__ == "__main__": | |
spiritual_gifts() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment