how to set range on the attributes of a function in python code example Example: in range python for i in range(x) : #code