i've this code, how to force the exit of for loop?:
    try:
            for i in list:
                    with open(i, 'r') as f:
                            json_data = json.load(f)
                    if something == some:
                            print("ddddddddddddddd")
                    else:
                            print("Check successful!!!")
    except IOError:
           print("exception")
i wuold block after print("dddddddd") how can i force the exit?
 
    