SyntaxFix
Write A Post
Hire A Developer
Questions
Since both None and "" are false, you can do both. See 6.1. Truth Value Testing.
Edit
To answer the question in your edit: No, you can assign a different type.
>>> a = "" >>> type(a) <type 'str'> >>> a = 1 >>> type(a) <type 'int'>