Closed notzoom closed 6 years ago
That's intended.
s = "I am fine"
l = s.split(" ")
s = l[0]
print(s)
works
Pseudo translates only a limited subset of Python which is statically typed. You don't write any types, because it has full type inference, but changing the type of a variable is forbidden
Trying to translate this Python program to JS:
What I get is: can't change the type of variable string in global scope from String to List[String]