|

Input a list of numbers and swap elements at the even location with the elements at the odd location Python Program

Input a list of numbers and swap elements at the even location with the elements at the odd location Python Program   # Program to input number list and swapping odd and even index elements    # Entering 5 element Lsit mylist = [] print(“Enter 5 elements for the list: “) for i in range(5):…

Input a list/tuple of elements and search for a given element in the list/tuple Python Program

Input a list/tuple of elements and search for a given element in the list/tuple Python Program   # Python Program to input a list of 5 elements and search element in List   mylist = [] print(“Enter 5 elements for the list: “) for i in range(5): value = int(input()) mylist.append(value) print(“Enter an element to…

|

Input three numbers and display the largest/smallest number Python Program

Input three numbers and display the largest/smallest number Python Program # Python Program to input 3 numbers and display the largest number   #input first,Second and third number num1=int(input(“Enter First Number”)) num2=int(input(“Enter Second Number”)) num3=int(input(“Enter Third Number”)) #Check if first number is greater than rest of the two numbers. if (num1> num2 and num1> num3):…

|

Input two numbers and display the larger/smaller number Python Program

Input two numbers and display the larger/smaller number Python Program    # Python Program to input 2 numbers and display larger number   #input first number num1=int(input(“Enter First Number”)) #input Second number num2=int(input(“Enter Second Number”)) #Check if first number is greater than second if (num1>num2): print(“The Larger number is”, num1) else: print (“The Larger number…

|

Input a list of numbers and find the smallest and largest number from the list Python Program

Input a list of numbers and find the smallest and largest number from the list Python Program   #create empty list mylist = [] number = int(input(‘How many elements to put in List: ‘)) for n in range(number): element = int(input(‘Enter element ‘)) mylist.append(element) print(“Maximum element in the list is :”, max(mylist)) print(“Minimum element in…

Class 11 Informatics Practices Term 2 Sample Paper Set-1

Class 11 Informatics Practices Term 2 Sample Paper Set-1 Subject: Informatics Practices  Subject Code: 065 Class 11 Maximum Marks: 35/Time: 2 hours   General Instructions The question paper is divided into 3 sections – A, B and C Section A, consists of 7 questions (1-7). Each question carries 2 marks. Section B, consists of 3…

Find the smallest/largest number in a list/tuple Python Program

Find the smallest/largest number in a list/tuple   # Program to Find the smallest number in a list There may be many approaches to find the smallest number in a list. Here I provide some of the approaches.    Approach 1: You can Sort the list using sort method. Sort in ascending order and print…

(2024-25 New Syllabus) Practical File for Class 11 Computer Science (083)
|

(2024-25 New Syllabus) Practical File for Class 11 Computer Science (083)

Practical List for Class 11 Computer Science (083) suggested by CBSE for Session 2024-25.   Programming Language- Python Practical File for Class 11 Computer Science Here are the programs which are suggested by CBSE for Computer Science Practical File class 11. Students should learn and practice  these python programs.    Program 1: Input a welcome…