While working with PyCharm, I am getting the following error:
Expected 'collections.Iterable', got 'range[int]' instead
This inspection detects type errors in function call expressions. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Types of function parameters can be specified in docstrings or in Python 3 function annotations.
for _ in range(x):
This is how I have written the for loop. Is there any other solution?