2 ms·
Variables are function-scoped, not block-scoped. So you can do this: if 2 < 3: s = "Math works" else: s = "Math doesn't work" print
by xigoi 5y ago
Variables are function-scoped, not block-scoped. So you can do this:
if 2 < 3:
s = "Math works"
else:
s = "Math doesn't work"
print(s)