Is there a way to iteratively rename objects in python? I'm trying to code something along the lines of:
for i in range(5000):
phat_i = i/5000
print(i/5000)
It doesn't seem like this will work because even if this created a new objected named "phat_i," it seems like it would just redefine that object for each "i." Instead, I want to create new objects "phat_1," "phat_2," etc. for each "i."
I've already looked at this question but the only answer to it seems to have not answered my question. Maya Python: Renaming object with for loops