Operators are used to performing operations on values. Operators in Python are divided into the following categories : Arithmetic operators Assignment operators Logical operators Comparison operators Identity operators Membership operators Bitwise operators Arithmetic operators: These operators are used to perform mathematical operations (addition, subtraction, multiplication, division) on numerical values. “+”: This operator is used to […]
Category: Basic Concepts
let’s discuss basic concepts in python like variables, data-types, operators, looping, importing, file-handling, object-oriented etc …
Python Lists
The List is a collection of heterogeneous data type that is ordered and changeable i.e. mutable. It allows duplicate members. Creation of list: Using square brackets: Output: [] [‘apple’, ‘orange’, ‘kiwi’] Using list() built-in function: Output: [] [‘a’, ‘p’, ‘p’, ‘l’, ‘e’] Access elements of the list: We can access any element from the list […]
Introduction To Python Programming Language
Python is a general-purpose programming language which is high level, interpreted language with easy syntax and dynamic semantics. It was created by Guido Van Rossum in 1991.