Created
November 29, 2021 17:06
-
-
Save pigmonchu/61cb059f994bbdafe9a8f78a6d017a91 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
characters = [Jedi('Anakin', 10000), Jedi('Yoda', 1000000), StarWarsCharacter('Chewie')] | |
sum = 0 | |
for elt in characters: | |
sum = sum + elt.midichlorians |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment