List Comprehensions in Python..
When you write any regular code for the list. Example:
list = []
for x in range(400):
if x % 10 == 0:
list.append(x)
print(list)
It is an extended code, but you can change it to >>
v = [x for x in range(400) if x % 10 == 0]
print(v)...
almuhannad.hashnode.dev2 min read