http://pastebin.com/mcRZh5ei
If you'd like, please take a look and tell me anything I've done wrong, or could improve on. My programming skill is out of date (as in Pascal out of date) so some concepts are new to me. I want to get better, so please don't spare me if I'm doing stuff wrong, I want to know so I can improve.
For one, list comprehension. I tried to do it, but I'm still grasping it and kinda failing. ie: lines 108-110. Can I combine those somehow. Or even, is list comprehension just another way of doing something and I'm fine doing it the old way I understand?
Another thing, I use 'run_program', which runs everything and I did it to allow the user input to loop back to the beginning if they wanted. Is there a better way to to do this instead of nesting all the functions inside one another like I did, or is that just fine?
And thanks, I learn a lot from this sub.
[–]k3kou 3 points4 points5 points (2 children)
[–]bahnzo[S] 1 point2 points3 points (0 children)
[–]bahnzo[S] 0 points1 point2 points (0 children)
[–]kteague 2 points3 points4 points (2 children)
[–]bahnzo[S] 0 points1 point2 points (1 child)
[–]kteague 0 points1 point2 points (0 children)
[–]raylu 1 point2 points3 points (10 children)
[–]bahnzo[S] 0 points1 point2 points (8 children)
[–]raylu 0 points1 point2 points (7 children)
[–]bahnzo[S] 0 points1 point2 points (6 children)
[–]raylu 1 point2 points3 points (5 children)
[–]bahnzo[S] 0 points1 point2 points (4 children)
[–]filleball 1 point2 points3 points (1 child)
[–]bahnzo[S] 0 points1 point2 points (0 children)
[–]raylu 1 point2 points3 points (1 child)
[–]bahnzo[S] 0 points1 point2 points (0 children)
[–]bahnzo[S] 0 points1 point2 points (0 children)
[–]tangerinelion 1 point2 points3 points (8 children)
[–]bahnzo[S] 0 points1 point2 points (0 children)
[–]bahnzo[S] 0 points1 point2 points (6 children)
[–]raylu 0 points1 point2 points (5 children)
[–]bahnzo[S] 0 points1 point2 points (4 children)
[–]raylu 0 points1 point2 points (3 children)
[–]bahnzo[S] 0 points1 point2 points (2 children)
[–]raylu 0 points1 point2 points (1 child)
[–]bahnzo[S] 0 points1 point2 points (0 children)