Is it possible in python to have a for-loop without index and item? I have something like the following:
list_1 = [] for i in range(5): list_1.append(3)
While @toine is completly right about using _, you could also refine this by means of a list comprehension:
_
list_1 = [3 for _ in range(5)]
This avoids the ITM ("initialize, than modify") anti-pattern.