I just learned that you can define what kind of value you want a variable to hold using the syntax "x: type". But when I actually try it myself in Visual Studio Code, nothing seems to happen. For example, if I write:
x: int
x = 'number'
print(x)
it just prints the word 'number', and I don't get any kind of warning about it. I'm using Python 3.9 and don't have any other version installed.