String Data Type in python Class 11 Notes

String Data Type in python WHAT ARE STRINGS? In Python, a string is a sequence of characters, enclosed in either single quotes (”) or double quotes (“”). Strings are immutable, which means once a string is created, its contents cannot be changed. Here is an example of a string: my_string = “Hello, World!” You can … Read more

Number Data Type in python

Number Data Type in python Python Numbers Number data types store numeric values. Number objects are created when you assign a value to them. For example − var1 = var2 = 10 You can also delete the reference to a number object by using the del statement. The syntax of the del statement is − … Read more

What are variables in python

What are variables in python Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory. Based on the data type of a variable, the interpreter allocates memory and decides what can be stored in the reserved memory. Therefore, by assigning different … Read more

What are Identifiers and Keywords in Python

What are Identifiers and Keywords in Python What are Identifiers in Python Python Identifiers A Python identifier is a name used to identify a variable, function, class, module or other object. An identifier starts with a letter A to Z or a to z or an underscore (_) followed by zero or more letters, underscores … Read more

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 … Read more

CBSE Sample Paper Class 9 Social Studies 2020

CBSE Sample Paper Class 9 Social Studies 2020 Annual Examination Class-IX Subject: Social Studies Time: 3 hour/M.M.-80 Note:All questions are compulsory. (Very short answer question- 1 mark each) 1- Who was the ruler of France during French Revolution? 2- Where is Baster located? 3- How does annual growth rate of population calculated? 4- What is … Read more

(New) CBSE Sample Paper Class 11 Biology 2021

(New) CBSE Sample Paper Class 11 Biology 2021 Annual Examination (2019-20) Class-XI Subject- Biology (044) Time: 3:00 hour/M.M.-70 All questions are compulsory. Section-A 1- Write the botanical name of wheat and housefly.(1) 2- Write the name of muscle cell, which has actin and myosin protein.(1) 3- Write the name of two hermaphrodite (bisexual) animals.(1) 4- … Read more

CBSE Sample Paper Class 9 English 2021

CBSE Sample Paper Class 9 English 2021 Class-IX Sub- English Time: 3 hour/ M.M.-80 All questions are compulsory. Q. 1- Read the following passage carefully. (8) Thomas Alva Edison was an American inventor and businessman who developed many devices that greatly influenced life around the world. He lit up the world with his invention of … Read more

Menu Driven Program to implement all user defined functions of a list in Python

Menu Driven Program to implement all user defined functions of a list in Python   ch=’y’ L = [1,2,3,4,2,3,2,4,5,6,71,1,10,12] while ch == ‘y’ or ch==’Y’: print(“1. append in list”) print(“2. Insert in a list”) print(“3. Find length of list”) print(“4. To count occurence of an element”) print(“5. Extend a list”) print(“6. Find the sum of … Read more

Copywrite © 2020-2026, CBSE Python,
All Rights Reserved