The Python Oracle

Is it possible only to declare a variable without assigning any value in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC P Beethoven - Piano Sonata No 2 in A

--

Chapters
00:00 Question
01:06 Accepted answer (Score 456)
01:45 Answer 2 (Score 84)
02:53 Answer 3 (Score 60)
03:14 Answer 4 (Score 16)
05:13 Thank you

--

Full question
https://stackoverflow.com/questions/6642...

Question links:
[Why can a function modify some arguments as perceived by the caller, but not others?]: https://stackoverflow.com/questions/5751.../
[Python Variable Declaration]: https://stackoverflow.com/questions/1100.../
[Python Names and Values]: https://nedbatchelder.com/text/names1.ht...
[Other languages have "variables"]: http://python.net/%7Egoodger/projects/py...

Answer 1 links:
https://www.python.org/dev/peps/pep-0526...

Answer 2 links:
[Other languages have "variables"]: http://web.archive.org/web/2018033108502...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #variableassignment #variabledeclaration

#avk47