Created
June 22, 2022 17:03
-
-
Save albionbrown/d1b8c092cd01466c8c097f3962720e19 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
# Cards.txt | |
#rainbow, 10, 28, rainbow.png | |
#space, 5, 20, space.png | |
robots = {} | |
file = open('cards.txt', 'r') | |
# #print(file.read().splitlines()) | |
for line in file.read().splitlines(): | |
name, battery, intelligence, image = line.split(', ') | |
robots[name] = [battery, intelligence, image] | |
file.close() | |
print(robots) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment