Python allows me to make the following statement...
records = list()
ie declare a name/variable that is at present of type 'List'
The following syntax does not throw a syntax error but I'm not sure what it actually does...
records: list()
Any ideas when you might use the colon version? Why is it syntactically correct if when I query its type I get an error?
records = list()
print(type(records)
>> <class 'list'>
records: list()
print(type(records)
>> NameError: name 'records' is not defined