def pLatin_converter (self): movetoend = "" index = 0 global pig = ""
I'm getting an 'invalid syntax' on the global pig = "" line and I don't understand why.
global pig = ""
The global variable can't be assigned a value in the global statement.
global
Split the two:
global pig pig = ""
1.4m articles
1.4m replys
5 comments
57.0k users