Skip to content

Instantly share code, notes, and snippets.

@narskidan
Created December 31, 2022 04:51
Show Gist options
  • Save narskidan/3c1cc0abe017398378fe2ec26cfe94c0 to your computer and use it in GitHub Desktop.
Save narskidan/3c1cc0abe017398378fe2ec26cfe94c0 to your computer and use it in GitHub Desktop.
Script to automate the process of figuring out how long til I'm Top Rated Plus on Upwork
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment