Tagged: Lists

0

Python More About Lists

List Comprehensions One way to create a list with for loop: List comprehensions are an elegant way to build a list without having to use another list for loops to append values one by one. Multiple Assignment For loops For loop over the list: I never liked i=0, i+=1 structure, but if you still need to track the index: Nested lists...

0

Python Basics: Strings, Lists, Dicts, Functions

Kind of Cheat Sheet for anything basic, that I did not know, have not used or interesting things, that good to know. I will keep it handy for a quick reference. I am going to create separate posts for some Python features. Strings Lists Dictionaries Functions