[ List comprehension is amazing, like here is a comparison ]
Without "List comprehension"
Doubles = []
for x in range(1, 11):
Doubles.append(x * 2)
Print(Doubles)
[ 2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
With "List Comprehension"
Doubles = [x * 2 for x in range(1, 11)]
Print(Doubles)
[ 2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
[ like, I'm amazed man, I'm happy that exists ]
@myxo-gabriel







