Python Programming
Python if else and nested if else statements
In programming conditional statements provides a way in which the computer takes a decision based on whether a condition is true or false. The if and else statements are common
Python Indentation
An indentation or indent is an empty space at the beginning of a line that signals the start of a new logical block in a Python program. Many programming languages
Taking Input From Users In Python
Computer programs often need to interact with users to get some kind of data from them. Later this data is processed and output is displayed on the console. For example,
Operators in Python
An operator is a symbol that tells the Python interpreter to perform specific arithmetic or logical operations on variables and values. For example – # Here + and = are
Keywords In Python
Like other programming languages, Python also has some reserved words whose meaning is already defined by the Python interpreter these reserved words are known as Keywords. A keyword cannot be
Python Strings
A string is a sequence or a collection of characters enclosed within single or double-quotes. In Python, the print() function is used to display a string. Since a computer understands
Escape sequences in Python
An escape sequence or escape character allows you to insert a special character in a string. For example, you can insert a new line in a string using \n character.
Python Boolean Data Type
Boolean or bool is a built-in data type in the python programming language. It can have two possible values – True False These are equivalent to 1 and 0
Python Numeric Data Types
Numeric data types are numbers stored in the memory. You can perform operations such as addition, subtraction, multiplication, division, modulo, etc on numeric data. The following data types can be
Data Types in Python
This post was last updated on February 2nd, 2021 at 07:54 pmIn programming, the data type is the classification of data items. In Python, it tells the interpreter how the
- 1
- 2