7 things that you need to know before starting the python programming | Fundamentals of python
If you are a beginner and not much know about python programming but you want to start your python journey very smoothly and want to learn python programming but don't know where to start then this article is for you to understand the basic fundamentals of python that is used in your programming. And these fundamentals make your python journey very smooth because without knowing this you are not able to learn python programming.
Python Keywords
Keywords are those words, who reserved in python, keywords that have a specific meaning for python interpreters. As you save keywords has a definite meaning for python interpreter.
So, given below in tables are keywords and python is case sensitive so, note that you have followed that table that given below.
False | class | finally | is | return |
None | continue | for | lambda | try |
True | def | from | nonlocal | while |
and | del | global | not | with |
as | elif | if | or | yield |
assert | else | import | pass | |
break | except | in | raise |
Identifiers
- The name should begin with an uppercase or a lowercase alphabet or an underscore sign (_). This may be followed by any combination of characters a–z, A–Z, 0–9, or underscore (_). Thus, an identifier cannot start with a digit.
- It can be of any length. (However, it is preferred to keep it short and meaningful).
- It should not be a keyword or reserved word.
- We cannot use special symbols like !, @, #, $, %, etc., in identifiers.
Variables
Comments
Data types
Data types in python
- Numbers
- Integer
- boolean
- Floating
- Complex
- Sequences
- Strings
- Lists
- Tuples
- Set
- None
- Mapping
- Dictionary
Difference between mutable And immutable data types
Example:
- Lists
- Dictionary
- Integer
- Float
- Boolean
- Complex
- Strings
- Tuples
- Sets