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…

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…

CBSE Computer Science Introduction to python

Introduction to python Python may be a general-purpose interpreted, interactive, object-oriented, and high-level programming language . it had been created by Guido van Rossum during 1985- 1990. Like Perl, Python ASCII text file is additionally available under the GNU General Public License (GPL). This tutorial gives enough understanding on Python programing language . Why to…

|

CBSE Class 11 Computer Science Python Sample Paper 2021

CBSE Class 11 Computer Science Python Sample Paper 2021 Annual Examination (2020-21) Class-11 Subject: Computer Science Time allowed: 3:00 hours/ Maximum Marks:70 All questions are compulsory.   1- Name any two application software. (1)   2- Differentiate between compiler and interpreter? (2)   3- What do you understand by RAM and ROM? (1)   4-…

|

CBSE class 12 computer science python Assessment

CBSE class 12 computer science python Assessment Assessment-1 Class: XII Subject: Computer Science SECTION A 1- Identify the valid logical operator in Python:(1) a) and                                  b) % 2- Identify the valid identifier: (1) a) else                                  b) f_name 3- Name the Python Library modules which need to be imported to invoke the following functions:…