I've been staring at this Python code for a while now:

x = 43
print(x)
x = 'Victor'
print(x)

It's legal. But how can it be? How can x be both an integer and a string? It's unnatural! Witchcraft!

Sign in to participate in the conversation
Doma Social

Mastodon server of https://doma.dev.