Python Fundamental
Python Fundamental
2. Machine learning: There are many machine learning applications in Python. Machine
learning is a way to write a logic so that a machine can learn and solve a particular problem on
its own. For example, product recommendations in websites, like Amazon, Flipkart, eBay, etc.,
3. Data analysis: Python has a unique attribute and is easy-to-use when it comes to
quantitative and analytical computing.
4. Game development: Python is also suitable for building tools for game designers that
simplify tasks, such as "level designing" or "dialogue tree creation", etc.
TOKENS
Token is the smallest unit inside a program. Tokens can be defined as a punctuation mark,
reserved words or each individual word in a statement.
1.Keywords/Reserved Words
Keywords are a set of special words which are reserved by Python and have specific meanings.
Keywords in Python are case sensitive. Note that we are not allowed to use keywords as
variables in Python.
2. Identifiers or Variables
Variable, also known as identifier, is used to hold a value. Variable is a name which is used to
refer memory location.
3. Literals
Literals can be defined as data that is given in a variable or constant.
4. Operators:
Operators are symbols which perform an operation on some values. These values are known as
operands.
In Python, operators are categorised into the following categories:
→ Arithmetic Operators
→ Comparison Operators
→ Assignment Operators