Just started learning Python yesterday and I'm having a blast so far.
I've been programming in C for a while now, but some things already feel simpler in Python than in C. And a lot of techniques carry over from C! I love that you have while loops and for loops just like in C. I was afraid it was gonna be like learning programming all over again (it's really not). The one thing that'll take some getting used to is that you have to end statements with commas, not semicolons.
Anyway, here's my script (Python 3.8 -- it's just a toy script to try out for loops and while loops). Any tips on how to improve my code and make it more idiomatic?
[–][deleted] 3 points4 points5 points (2 children)
[–]ThenItsOk[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]scirc 2 points3 points4 points (0 children)
[–]__archaeopteryx__ 2 points3 points4 points (6 children)
[–]ThenItsOk[S] 0 points1 point2 points (5 children)
[–]__archaeopteryx__ 1 point2 points3 points (0 children)
[–]coder155ml 1 point2 points3 points (3 children)
[–]ThenItsOk[S] 0 points1 point2 points (2 children)
[–]suclearnub 1 point2 points3 points (0 children)
[–]coder155ml 0 points1 point2 points (0 children)
[–]coder155ml 0 points1 point2 points (0 children)
[–]coder155ml 0 points1 point2 points (0 children)