Skip to content
Advertisement

Python Bruteforcing zip file cannot assign to function call

I am learning how to access a zip file with python BruteForcing. but I am facing a problem when I do that in the zipF in line 11 that is the exception: cannot assign to function call.

JavaScript

Thanks in advance

Advertisement

Answer

You can’t use a break inside a try-catch statement. also, you try to assign a function to the file handler. You can use exit(0) instead of break

JavaScript

And you have broken indentation in your program, maybe this is want you want

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement