9th Apr 2022, 3:25 AM
マッドキング♣️✨♣️ [MadKing]
マッドキング♣️✨♣️ [MadKing] - avatar
2 Réponses
+ 6
if you want to change the global variable inside the function then you have to define the global variable first inside the function Example: state = False def makeTrue(): global state state = True # call function... makeTrue() print(state) # true
9th Apr 2022, 3:54 AM
Ferdiansyah
Ferdiansyah - avatar
0
ferdiansyah0611 Thanks mate!
9th Apr 2022, 5:31 AM
マッドキング♣️✨♣️ [MadKing]
マッドキング♣️✨♣️ [MadKing] - avatar