in , ,

My college roommate wrote a Python script to let RNG give him rewards when he finishes an assignment or gets up early (I told him he’s crazy for this).

My college roommate wrote a Python script to let RNG give him rewards when he finishes an assignment or gets up early (I told him he's crazy for this). | python-memes, random-memes, list-memes, rds-memes | ProgrammerHumor.io
python-memes, random-memes, list-memes, rds-memes | ProgrammerHumor.io

Content

spinner.py main import random rewardprobs ‘Steam Deck’: 0.00001, ‘nothing’: 0.5, ‘next shower is warm’: 0.05, ’10 mins social media’: 0.1, ‘game of league’: 0.05, ‘eat takeout’: 0.05, ’10 mins of anything’: 0.05, ’10 mins of chess’: 0.05, ‘read an article’: 0.1, "two spins’: 0.04999, def spin(): def main(): spin result spin() print(spinresult) if (spinresult ! ‘nothing’): with open(‘rewards.txt’, ‘a’) as f: f.write (spin result ‘In’ ) if name I main main() ProdrammerHumor.io return random. choices(list (rewardprobs. keys()), list (rewardprobs. values ())) 01