6/13/2023 0 Comments Python snippitOnce you've seen list comprehensions, this is how you should write that. This is the point of having value in place of first_list.īad: It's still too long for something so simple Good: i is gone so we're no longer viewing the list as a collection of things stored via index but just as a collection of objects. In the interest of showing how refactoring is done incrementally and the different patterns one may learn along the way. Introduction to Programming with Python (from Microsoft Virtual Academy)./r/git and /r/mercurial - don't forget to put your code in a repo!./r/pyladies (women developers who love python)./r/coolgithubprojects (filtered on Python projects).
0 Comments
Leave a Reply. |