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

Create a dictionary with the roll number, name and marks of n students in a class and display the names of students who have scored marks above 75.

Create a dictionary with the roll number, name and marks of n students in a class and display the names of students who have scored marks above 75.   Program no_of_std = int(input(“Enter number of students: “)) result = {} for i in range(no_of_std): print(“Enter Details of student No.”, i+1) roll_no = int(input(“Roll No: “)) … Read more

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

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

Class 11 Computer Science Sample Paper Term 2 Set-1

Class 11 Computer Science Sample Paper Term 2 Set-1 Subject Code: 083 Max Marks – 35 /Time – 02 Hrs. General Instructions: ♦ Attempt all questions. 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, … Read more

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

11 CS Practical

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

Digital Clock in Python using Tkinter

Digital Clock in Python using Tkinter Source Code: import time from tkinter import * root = Tk() root.title(“Digital Clock”) root.resizable() lbl = Label(root) lbl.grid(row=0, column=0) def display(): time_get = time.strftime(“%Y/%m/%d\n%I:%M:%S %p”) lbl.config(text=time_get, bg=’blue’, fg=’white’, font=(‘Times New Roman’, 50, ‘bold’)) lbl.after(100, display) display() root.mainloop()   Output:

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