3 ms·
Python: x = 2 if stringy: x = '2' print x+x # 4 or 22??? C++: int x = 2; if(stringy) string x = "2"; print x+x; // 4 (string x is out
by marvy 11y ago
Python:
x = 2
if stringy: x = '2'
print x+x # 4 or 22???
C++:
int x = 2;
if(stringy) string x = "2";
print x+x; // 4 (string x is out of scope)