Comments in PythonIn Python, comments begin with hash symbol (#). The lines that begins with # are
|
Conditional operatorTernary operator is also known as conditional operator that evaluate something based on a condition being true or false.
|
Data typesAll data values in Python are objects and each object or value has type. Python has Builtin or Fundamental data types such as Number, String, Boolean, tuples, lists and dictionaries.
|
IdentifiersAn Identifier is a name used to identify a variable, function, class, module or object. |
IndentationPython uses whitespace such as spaces and tabs to define program blocks whereas other languages like C, C++, java use curly braces { } to indicate blocks of codes for class, functions or body of the loops and block of selection command. |
input functionThe input() function helps to enter data at run time by the user.
|
int() functionThe int( ) function is used to convert string data into integer data. |
Interactive mode Programming
|
KeywordsKeywords are special words used by Python interpreter. As these words have specific meaning for interpreter, they cannot be used for any other purpose. |
OperatorsIn computer programming languages operators are special symbols which represent computations, conditional matching etc. Operators are categorized as Arithmetic, Relational, Logical, Assignment etc.
|