(July 3, 2016 at 7:44 am)SteelCurtain Wrote: Wait, you can declare variables in Python without initializing them.
Code:def main():
a = 5
print(a)
main()
In other languages you'll at least have to declare the variable type, whereas Python will determine the variable type automatically. At least the packaged compiler/shell (IDLE) will.
Sorry, but can you elaborate on what you did here to show that this is possible? All I see is that you created a procedure that prints the value of 5 and then called it.