name 're' is not defined code example Example: NameError: name 'ggt' is not defined It is quite clear in the error, the variable isn't defined