0% found this document useful (0 votes)
26 views3 pages

Python Programs for Class 11 CBSE

The document provides a comprehensive list of Python programming exercises and mini projects for Class 11 (CBSE). It covers various topics including basic input-output, conditional statements, loops, string handling, lists and tuples, dictionaries, file handling, and mini projects. Each section contains specific tasks aimed at enhancing students' programming skills.

Uploaded by

p33347794
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views3 pages

Python Programs for Class 11 CBSE

The document provides a comprehensive list of Python programming exercises and mini projects for Class 11 (CBSE). It covers various topics including basic input-output, conditional statements, loops, string handling, lists and tuples, dictionaries, file handling, and mini projects. Each section contains specific tasks aimed at enhancing students' programming skills.

Uploaded by

p33347794
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Python Programs for Class 11 (CBSE)

1. Basic Input–Output & Operators


1 Display 'Hello, Python!'
2 Add, subtract, multiply, and divide two numbers
3 Find average of three numbers
4 Swap two numbers (with/without third variable)
5 Find square and cube of a number
6 Convert temperature (Celsius ↔ Fahrenheit)
7 Find area and perimeter of basic shapes
8 Calculate simple and compound interest
9 Convert days to years/weeks/days
10 Find ASCII value of a character

2. Conditional Statements (if–else)


1 Check even or odd number
2 Find largest of three numbers
3 Check leap year
4 Check vowel or consonant
5 Positive, negative or zero check
6 Grade a student based on marks
7 Check divisibility by 3 and 5
8 Check prime or composite
9 Check if sides form a triangle
10 Identify type of character (letter/digit/symbol)

3. Loops (for / while)


1 Print first n natural numbers
2 Print multiplication table
3 Sum of first n numbers
4 Factorial of a number
5 Fibonacci series up to n terms
6 Count digits and sum of digits
7 Reverse a number
8 Check palindrome number
9 Find HCF/GCD
10 Display primes between 1 and 100

4. String Handling
1 Count vowels and consonants
2 Check palindrome string
3 Character frequency count
4 Find string length (without len())
5 Convert case (upper/lower)
6 Count words in a sentence
7 Replace spaces with hyphens
8 Find and replace substring
9 Check substring presence
10 Remove punctuation marks

5. Lists and Tuples


1 Create and display list elements
2 Find max, min, sum of list
3 Count even and odd numbers in list
4 Find second largest element
5 Remove duplicates
6 Sort list ascending/descending
7 Average of tuple elements
8 Check element existence in tuple
9 Concatenate and remove duplicates
10 Print list in reverse order

6. Dictionaries
1 Create dictionary of countries and capitals
2 Add/remove dictionary elements
3 Find dictionary length
4 Merge two dictionaries
5 Multiply all values
6 Find key with maximum value
7 Check if key exists
8 Count word frequency in a sentence
9 Display student marks and compute total/average
10 Nested dictionary for student records

7. File Handling
1 Write data to a file
2 Read and display file content
3 Count lines, words, and characters
4 Copy contents to another file
5 Count word occurrences
6 Display lines with a specific word
7 Append new content
8 Read file with line numbers
9 Remove blank lines
10 Store and retrieve student records

8. Mini Projects
1 Student Record System
2 Library Management System
3 Marksheet Generator
4 Quiz Game (MCQs)
5 Number Guessing Game
6 Simple Calculator (menu-driven)
7 Bank Account Management
8 Voting Eligibility Checker
9 Word Frequency Analyzer
10 Contact Book (dictionary-based)

You might also like