Now I know that it is not safe to modify the list during an iterative looping. However, suppose I have a list of strings, and I want to strip the strings themselves. Does re
You can do something like this:
a = [1,2,3,4,5] b = [i**2 for i in a]
It's called a list comprehension, to make it easier for you to loop inside a list.