0
Why we can't define for as a variable in Python?
8 Answers
+ 9
instead of "for" you can use "for_" if you like that.
+ 7
Deepak Sanjaykumar More , if, else, for, while are keywords in python, not functions. You can get a list of them by just using:
help('keywords')
+ 4
Deepak Sanjaykumar More , Keywords
Keywords in a programming language are special reserved words that have specific meanings and purposes and canât be used for anything else. This means that they can't be used as variable names, function or method names or class names.
+ 1
Continue going to the python course and you will see what these are
+ 1
Lothar help("keywords") works.
But what are keywords? Explain please.
+ 1
Keywords are language statements and are reserved for this.
0
You can't use names that already have a meaning in python such as if, else, while, def etc
0
Are if, else, for, while functions?
codemonkey Andrei I