Python practice programs from reddit forum