we can’t loop over integers. That will give a TypeError.
Why would you want a loop?
Did that solve your problem?
my_list is type list:
while gold was of type integer:
loop works fine on string and list, just not on integer
got it. thank you so much