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
with open('money.txt') as money_file: | |
raw_lines = money_file.readlines() | |
total = 0 | |
for line in raw_lines: | |
if '$' in line: | |
money = float(line.split()[-1][1:]) | |
total += float(money) | |
print('Remaining money til TOP RATED PLUS: ', 10_000 - total) |
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
from itertools import chain, repeat | |
def is_floatable(num): | |
try: | |
float(num) | |
return True | |
except ValueError: | |
return False | |
# based on this glorious StackOverflow post: https://stackoverflow.com/a/56081775 |
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
' '.join([i[0].upper() + i[1:] for i in s.split()]) |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC3ycW/AXmNXYAN/DgBG8R9Gwjdax0Dus5Nszx539/ZEZ6a+qwhXEoR0LI1b1NCW7zhwmaNlhj0GPBIP75nURGcnjTPr/pxvS/6MViqFogRHw60PiCmIrwgE5DoAnw7qWlJoqtP2755zs//ewfnK3sajndNiVxU8yMEctmiHG+8EXipsP/5uvX5kas0gC8c91GBbcMcT23MQxzcNuk/vZHMk1KSI36rLJ63LstvzmqVxU6CHbVW4neJzXo78jk3zdpqTybC+l+A73PpJOetAf4LOWT+/hKDRJg/cTbZnAaqQdAY2ymSnaLXagnE/hPnxq9e8yPQzQWy3UvKZyrv/y13lB0RjhCpVSVws4dIem+9eHEHgyvgTVa6DfTePKJPSauLxdRwONb8WE1OMuxn/RcKMAliWkab0wIWsALIGcJYAff+T0UzmsM3s6Y92RobwrY/w1RmDyN6H1045liaePD+JnI3XTe+8awRUn/BM+Q6ZOJ8M6538DaDjxiCymIDYLk= [email protected] |
NewerOlder