Yes you're right, thanks for the feedback and the advice, appreciated. There's a few ways of doing this, even with one single line of code but I wrote it this way just to explain the underlying logic behind it for people who are trying to learn. I'm still pretty new to Python as well, trying to teach people as I learn the Python ways :)
You are viewing a single comment's thread from: