python try then change something and try again if fails

Solutions on MaxInterview for python try then change something and try again if fails by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "python try then change something and try again if fails"
Jordan
20 Aug 2020
1for i in range(0,100):
2    while True:
3        try:
4            # do stuff
5        except SomeSpecificException:
6            continue
7        break