Operator in python

Operator in python Operators are the constructs which can manipulate the value of operands. Consider the expression 4 + 5 = 9. Here, 4 and 5 are called operands and + is called operator. Types of Operator Python language supports the following types of operators. Arithmetic Operators Comparison (Relational) Operators Assignment Operators Logical Operators Bitwise…

|

Tuple in Python Class 11 Notes Computer Science/ Informatics Practices

Tuple in Python Class 11 Notes : Easy Notes for CBSE Students Introduction to Tuples in Python Hey Class 11-12 CBSE students! Welcome to your easy notes on Tuples in Python—a key topic in your Computer Science syllabus. A tuple is like a list, but you cannot change its elements after creating it. It’s a…

First Python Program “Hello Python”

Introduction Python is an interpreted language as its programs are executed by an interpreter. Thus, Python interpreter should be installed on the computer system to write and run Python programs. Python IDLE (Integrated Development and Learning Environment) provides two working modes-interactive mode (popularly known as Python shell) and script mode. The Python IDLE tool offers…

Menu Driven Program to show various logical operation on List

Menu Driven Program to show various logical operation on List def search(): L = [] M = [] N= [ ] n = int(input(“enter how many elements “)) for i in range(n): x = int(input(“enter a number”)) L.append(x) f=0 x = int(input(“enter element to be searched “)) for i in range(n): if L[i]== x: f=1…