Hacking Articles Tips Tricks Videos Tutorials
468 subscribers
65.8K photos
15 videos
157 files
132K links
Exploit
Pentesting
Hacking
Red Team
Blue Team
Kali Linux
Bug Bounty
Black Hat
Cyber security etc

@Hacking_Video
@Hacking_attack
Download Telegram
hacking: security in practice
Big confusion on global variables

Please help. getBoo1 does not even run as it gets an error, saying that v1 is not defined, but getBoo2 runs perfectly well. why?

def getBoo1():
v1 += "aa"
return v1
def getBoo2():
return v1 + "aa"

v1 = "boo"
print(getBoo1())
print(getBoo2())

submitted by /u/Br3ikros
[link] [comments]

___________________________
@hacking_Attack
@Hacking_Video