PYTHON PROGRAMMING
➢ GOVT-COED SR. SEC. SCHOOL
❖ Name: Anmol
th
❖ Class: 12 -A
❖ Roll No: 01
❖ Computer science Project
❖ Session-2025-26
1.
INDEX
[Link]. Title Page NO.
Welcome message
1 6
Find the
2 Large/Smaller of Two
7
Number
Find the
3 Largest/Smallest of
8
Three Numbers
Patterns with Nested
4 Loops 9-11
Sum of Series
5 12-14
Number Classification
6 15-16
Prime or Composite
7 Number 17
Fibonacci Series
8 18
GCD and LCM of Two
9 Integers 19
Vowel, Consonant,
10 Uppercase,
20
Lowercase Counter
Palindrome and Case
11 Convers
21
Largest/Smallest
12 Number in a List or
22
Tuple
Swap Elements at
13 Even and Odd Indices 23
in a List
Search for an Element
14 in a List or Tuple 24
Dictionary of Students
15 with Marks Above 75
25
5.
Python Programs for Basic Operations
and Patterns
1. Welcome Message
Input a welcome message and display
it.
Code:
Output:
*********************************************
6.
Find the Larger/Smaller of Two
Numbers
Input two numbers and display the
larger/smaller number.
Code:
Output:
*********************************************
7.
3.
Find the Largest/Smallest of Three
Numbers
Input three numbers and display the
largest/smallest number.
Code:
Output:
*********************************************
8.
Patterns with Nested Loops
Generate patterns using nested loops.
Code:
Output:
9.
Code:
Output:
Code:
10.
Output:
*********************************************
11.
5. Sum of Series
Calculate various series sums based
on inputs of x and n.
Code:
Output:
12.
Code:
Output:
Code:
13.
Output:
Code:
Output:
*********************************************
14.
6. Number Classification
Determine whether a number is a
perfect number, an Armstrong number,
or a palindrome.
Code:
15.
Output:
*********************************************
7. Prime or Composite
16.
Number Input a number and check if it is a prime or
composite number.
Code:
Output:
*********************************************
17.
8. Fibonacci Series
Display the terms of a Fibonacci series.
Code:
Output:
*********************************************
18.
9. GCD and LCM of Two Integers
Compute the greatest common divisor and least common
multiple of two integers.
Code:
Output:
*********************************************
19.
10.
Vowel, Consonant, Uppercase, Lowercase Counter
Count and display the number of vowels,
consonants, uppercase, and lowercase characters
in a string.
Code:
Output:
20.
11.
Palindrome and Case Conversion
Input a string, determine if it is a palindrome, and convert
the case of characters.
Code:
Output:
*********************************************
21.
12.
Largest/Smallest Number in a List or Tuple
Find the largest and smallest number in a list or tuple. Code:
Output:
*********************************************
22.
13.
Swap Elements at Even and Odd Indices in a List
Input a list of numbers and swap elements at even indices
with elements at odd indices.
Code:
Output:
*********************************************
23.
14.
Search for an Element in a List or Tuple
Input a list/tuple of elements and search for a given element.
Code:
Output:
*********************************************
24.
15.
Dictionary of Students with Marks Above 75.
Create a dictionary with the roll number, name, and marks
of students, and display those with marks above 75.
Code:
Output:
25.