Programming Examples
Programming and problem solving through python Practical Questions
Topic : Introduction to Python
Question - 5
Python program that display a joke but display the punch line only when the user presses enter key
Topic : Operators Expressions and Python Statements
Question - 1
Python program to find a side of a right angled triangle whose two sides and an angle is given
Question - 2
Python program to obtain the marks in computer of some student and find mean median and mode
Question - 4
Python program to accept three side of triangle and find its area by using Herons Formula
Question - 10
Python program to print the volume of a cylinder when radius and height of the cylinder is given by user
Question - 11
Python program that asks your height in centimeters and converts it into foot and inches
Question - 15
Python program to take the temperatures of all 7 days of the week and displays the average temperature of that week
Question - 39
Python program that asks a user for a number of years and then prints out the number of days hours minutes and seconds
Question - 42
Python program to take two inputs for day month and then calculate which day of the year
Question - 49 [ O Level JUL-2025]
Write a program that takes 2 numbers as command line arguments and prints its sum.
Question - 51
Python program to input 3 numbers from user and check these are unique numbers are not
Question - 53
Python program to take two numbers and print if the first number is fully divisible by second number or not
Question - 56
Python program to read 3 numbers in 3variables and swap first two variables with the sums of first and second
Question - 63
Python program to input three unequal numbers and display the greatest and the smallest number
Question - 64
Python program to take two numbers and check that the first number is fully divisible by second number or not
Question - 70
Python program to input assets liabilities and capital then check accounting equation means balanced or not
Question - 72
Python program to calculate debt to equity check whether it is risky scenario for investor or not
Question - 73
Python program to input 2 integer number and check where they are same of different number
Question - 74 [ O Level JAN-2025]
Write a program that checks if a number is positive using the assert statement.
Question - 75
Pythoon program to read todays date only date Part from user Then display how many days are left in the current month
Question - 76
Python program to compute the result when two numbers and one operator is given by user
Question - 83
Python program to input length of three sides of a triangle Then check if these sides will form a triangle or not
Question - 84
Python program to input 3 sides of a triangle and print whether it is an equilateral scalene or isosceles triangle
Question - 85
Python program using if Elif else statement to find the number of days present in a month
Question - 86
Python program to accept marks of English math and science and display the appropriate stream allotted to the candidate
Question - 90
Python program to input any string and count number of uppercase and lowercase letters
Question - 95
Python program to find the difference between greatest and smallest digits presents in the number
Question - 106
Python program to check whether it is a prime number or not If it is not a prime then display the next number that is prime
Question - 107 [ O Level JUL-2025]
Implement Python Script to check given number is Armstrong or not.
Question - 108
Python program to calculate compound simple interest after taking the principle rate and time
Question - 113
Python program to find the average of the list of the numbers entered through keyboard
Question - 114
Python program to find the largest number from the list of the numbers entered through keyboard
Question - 119
Python program to input any number and to print all natural numbers up to given number
Question - 120
Python program to input any number and to find sum of all natural numbers up to given number
Question - 122
Python program to calculate the sum of odd numbers divisible by 5 from the range 1 to 100
Question - 131
Python program to Print numbers from 11 to N When the number is a multiple of 3 print Tipsy when it is a multiple of 7 print Topsy
Question - 140 [ O Level JAN-2025]
Write a program that takes two integers a and b as input. Print all the numbers between a and b (inclusive) that are divisible by both 3 and 5. If no such numbers exist, display No numbers found
Question - 143 [ O Level JUL-2025]
Write a program that takes two integers m and n (where m < n) as input and computes the sum of all even numbers between m and n (inclusive). Use the pass statement for numbers that are not even.
Question - 148 [ O Level JUL-2025]
Implement Python Script to generate prime numbers series up to n.
Topic : Sequence data types in python
Question - 1
Python program to find the 2nd largest number from the list of the numbers entered through keyboard.
Question - 4
Python program to read marks of six subjects and to print the marks scored in each subject and show the total marks
Question - 8
Python program to generate in the Fibonacci series and store it in a list Then find the sum of all values
Question - 9
Python program to find minimum element from a list of elements along with its index in the list
Question - 16
Python program that input a list, replace it twice and then prints the sorted list in ascending and descending order
Question - 17
Python program to check if the maximum element of the list lies in the first half of the list or in the second half
Question - 18
Python program to display the maximum elements from the two list along with its index in its list
Question - 25
Python program to inter list of string and create a new list that consist of those strings with their first characters removed
Question - 27
Python program to create a list using for loop which consist square of the integers 1 through 50
Question - 28
Python program to create a list using for loop which consist a bb ccc dddd that ends with 26 copies of the letter z.
Question - 29
Python program that takes any two list L and M of the same size and adds their elements together in another third list
Question - 30
Python program to rotates the elements of list so that fist elements move to second and second to the third
Question - 32
Python program to display the maximum and minimum values form specified range of indexes of a list
Question - 33
Python program to compare two equal sized list and print the first index where they differ
Question - 34
Python program that receives a Fibonacci series term and returns a number telling which term it is
Question - 35
Python Program to accept three distinct digits and print all possible combinations from the digits
Question - 37 [ O Level JUL-2025]
Write a program that takes as input a list having a mix of 10 positive numbers and a key value.
Question - 38 [ O Level JUL-2025]
Create a Python program that removes even duplicate positive integer numbers (includes zero)
Question - 39 [ O Level JUL-2025]
Create a Python program that finds the second smallest number in a list of positive integers (including zero).
Question - 41
Python program using a function that returns the area and circumference of a circle whose radius is passed as an argument
Question - 48
Python program to create a nested tuple to store roll number name and marks of students
Question - 49
Python program that interactively creates a nested tuple to store the marks in three subjects for five students
Question - 50 [ O Level JAN-2025]
Write a Python program to check whether an element exist within a tuple.
Question - 54
Python program to create a dictionary whose keys are month names and values are their corresponding number of days
Question - 55
Python program to enter names of employees and their salaries as input and store them in a dictionary
Question - 57
Python program to convert a number entered by the user into its corresponding number in words
Question - 60
Python Program to Create a dictionary whose keys are month name and whose values are number of days in the corresponding month
Question - 63
Python program that lists the over lapping keys of the two dictionaries if a key of d1 is also a key of d2 the list it
Question - 66
Python program to create a new dictionary D2 having same keys as D1 but values as the sum of the list elements
Question - 68 [ O Level JAN-2025]
Create a dictionary with RollNo and Percentage of 10 students. Write a program to print only those RollNo from the dictionary where percentage is greater than 50.
Question - 70 [ O Level JAN-2022]
Python function that takes a string as parameter and returns a string with every successive repetitive character replaced
Question - 71 [ O Level JUL-2025]
Implement python script to accept line of text and find the number of characters, number of vowels and number of blank spaces in it.
Topic : Functions in Python
Question - 1 [ O Level JUL-2023]
Write a function with name dividebyfive which generate and prints a random integer number from the range 0 to 100 and then return True if the randomly generated number is divisible by 5, and False otherwise.
Question - 7
Python function to find the sum of all numbers between 100 and 500 which are divisible by 2
Question - 9 [ O Level JUL-2025]
Python Function to Compute the Sum of n Terms of the Following Series
Question - 12
Python program that generates six random numbers in a sequence created with start stop step
Question - 16 [ O Level JAN-2025]
Write a Program to calculate factorial of a number using recursion.
Question - 17
Python function to accept 2 number and return addition subtraction multiplication and division
Topic : File Processing in Python
Question - 1 [ O Level JAN-2025]
Write a program that opens a file named data.txt in write mode, and writes multiple lines to it from a list of strings.
Question - 2 [ O Level JUL-2025]
Write a Python program to open the file with a for appending, then add a list of texts to append to the file.
Question - 18
Python program to create a function that would read contents from the sports.dat and creates a file named Atheletic.dat
Topic : Modules in Python
Question - 4
Python program to generate 3 random integers between 100 and 999 which is divisible by 5
Question - 6 [ O Level JAN-2025]
Write a function that prints the current date and time in a formatted way ("Year-Month-Day Hour : Minute)
Topic : NumPy Basics
Question - 1 [ O Level JAN-2025]
Write a NumPy program to create a 5x5 array with random values and replace the minimum value with 0.
Question - 2 [ O Level JAN-2025]
Create an array from [10, 15, 20, 25, 30]. Use Boolean indexing to create a new array with elements greater than 15.
Question - 4 [ O Level JAN-2023]
Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Topic : String Handling in Python
Question - 1
Python program input string and prints its characters in different lines two characters per line
Question - 5
Python program that display a joke but display the punch line only when the user presses enter key
Topic : Operators Expressions and Python Statements
Question - 1
Python program to find a side of a right angled triangle whose two sides and an angle is given
Question - 2
Python program to obtain the marks in computer of some student and find mean median and mode
Question - 4
Python program to accept three side of triangle and find its area by using Herons Formula
Question - 10
Python program to print the volume of a cylinder when radius and height of the cylinder is given by user
Question - 11
Python program that asks your height in centimeters and converts it into foot and inches
Question - 15
Python program to take the temperatures of all 7 days of the week and displays the average temperature of that week
Question - 39
Python program that asks a user for a number of years and then prints out the number of days hours minutes and seconds
Question - 42
Python program to take two inputs for day month and then calculate which day of the year
Question - 49 [ O Level JUL-2025]
Write a program that takes 2 numbers as command line arguments and prints its sum.
Question - 51
Python program to input 3 numbers from user and check these are unique numbers are not
Question - 53
Python program to take two numbers and print if the first number is fully divisible by second number or not
Question - 56
Python program to read 3 numbers in 3variables and swap first two variables with the sums of first and second
Question - 63
Python program to input three unequal numbers and display the greatest and the smallest number
Question - 64
Python program to take two numbers and check that the first number is fully divisible by second number or not
Question - 70
Python program to input assets liabilities and capital then check accounting equation means balanced or not
Question - 72
Python program to calculate debt to equity check whether it is risky scenario for investor or not
Question - 73
Python program to input 2 integer number and check where they are same of different number
Question - 74 [ O Level JAN-2025]
Write a program that checks if a number is positive using the assert statement.
Question - 75
Pythoon program to read todays date only date Part from user Then display how many days are left in the current month
Question - 76
Python program to compute the result when two numbers and one operator is given by user
Question - 83
Python program to input length of three sides of a triangle Then check if these sides will form a triangle or not
Question - 84
Python program to input 3 sides of a triangle and print whether it is an equilateral scalene or isosceles triangle
Question - 85
Python program using if Elif else statement to find the number of days present in a month
Question - 86
Python program to accept marks of English math and science and display the appropriate stream allotted to the candidate
Question - 90
Python program to input any string and count number of uppercase and lowercase letters
Question - 95
Python program to find the difference between greatest and smallest digits presents in the number
Question - 106
Python program to check whether it is a prime number or not If it is not a prime then display the next number that is prime
Question - 107 [ O Level JUL-2025]
Implement Python Script to check given number is Armstrong or not.
Question - 108
Python program to calculate compound simple interest after taking the principle rate and time
Question - 113
Python program to find the average of the list of the numbers entered through keyboard
Question - 114
Python program to find the largest number from the list of the numbers entered through keyboard
Question - 119
Python program to input any number and to print all natural numbers up to given number
Question - 120
Python program to input any number and to find sum of all natural numbers up to given number
Question - 122
Python program to calculate the sum of odd numbers divisible by 5 from the range 1 to 100
Question - 131
Python program to Print numbers from 11 to N When the number is a multiple of 3 print Tipsy when it is a multiple of 7 print Topsy
Question - 140 [ O Level JAN-2025]
Write a program that takes two integers a and b as input. Print all the numbers between a and b (inclusive) that are divisible by both 3 and 5. If no such numbers exist, display No numbers found
Question - 143 [ O Level JUL-2025]
Write a program that takes two integers m and n (where m < n) as input and computes the sum of all even numbers between m and n (inclusive). Use the pass statement for numbers that are not even.
Question - 148 [ O Level JUL-2025]
Implement Python Script to generate prime numbers series up to n.
Topic : Sequence data types in python
Question - 1
Python program to find the 2nd largest number from the list of the numbers entered through keyboard.
Question - 4
Python program to read marks of six subjects and to print the marks scored in each subject and show the total marks
Question - 8
Python program to generate in the Fibonacci series and store it in a list Then find the sum of all values
Question - 9
Python program to find minimum element from a list of elements along with its index in the list
Question - 16
Python program that input a list, replace it twice and then prints the sorted list in ascending and descending order
Question - 17
Python program to check if the maximum element of the list lies in the first half of the list or in the second half
Question - 18
Python program to display the maximum elements from the two list along with its index in its list
Question - 25
Python program to inter list of string and create a new list that consist of those strings with their first characters removed
Question - 27
Python program to create a list using for loop which consist square of the integers 1 through 50
Question - 28
Python program to create a list using for loop which consist a bb ccc dddd that ends with 26 copies of the letter z.
Question - 29
Python program that takes any two list L and M of the same size and adds their elements together in another third list
Question - 30
Python program to rotates the elements of list so that fist elements move to second and second to the third
Question - 32
Python program to display the maximum and minimum values form specified range of indexes of a list
Question - 33
Python program to compare two equal sized list and print the first index where they differ
Question - 34
Python program that receives a Fibonacci series term and returns a number telling which term it is
Question - 35
Python Program to accept three distinct digits and print all possible combinations from the digits
Question - 37 [ O Level JUL-2025]
Write a program that takes as input a list having a mix of 10 positive numbers and a key value.
Question - 38 [ O Level JUL-2025]
Create a Python program that removes even duplicate positive integer numbers (includes zero)
Question - 39 [ O Level JUL-2025]
Create a Python program that finds the second smallest number in a list of positive integers (including zero).
Question - 41
Python program using a function that returns the area and circumference of a circle whose radius is passed as an argument
Question - 48
Python program to create a nested tuple to store roll number name and marks of students
Question - 49
Python program that interactively creates a nested tuple to store the marks in three subjects for five students
Question - 50 [ O Level JAN-2025]
Write a Python program to check whether an element exist within a tuple.
Question - 54
Python program to create a dictionary whose keys are month names and values are their corresponding number of days
Question - 55
Python program to enter names of employees and their salaries as input and store them in a dictionary
Question - 57
Python program to convert a number entered by the user into its corresponding number in words
Question - 60
Python Program to Create a dictionary whose keys are month name and whose values are number of days in the corresponding month
Question - 63
Python program that lists the over lapping keys of the two dictionaries if a key of d1 is also a key of d2 the list it
Question - 66
Python program to create a new dictionary D2 having same keys as D1 but values as the sum of the list elements
Question - 68 [ O Level JAN-2025]
Create a dictionary with RollNo and Percentage of 10 students. Write a program to print only those RollNo from the dictionary where percentage is greater than 50.
Question - 70 [ O Level JAN-2022]
Python function that takes a string as parameter and returns a string with every successive repetitive character replaced
Question - 71 [ O Level JUL-2025]
Implement python script to accept line of text and find the number of characters, number of vowels and number of blank spaces in it.
Topic : Functions in Python
Question - 1 [ O Level JUL-2023]
Write a function with name dividebyfive which generate and prints a random integer number from the range 0 to 100 and then return True if the randomly generated number is divisible by 5, and False otherwise.
Question - 7
Python function to find the sum of all numbers between 100 and 500 which are divisible by 2
Question - 9 [ O Level JUL-2025]
Python Function to Compute the Sum of n Terms of the Following Series
Question - 12
Python program that generates six random numbers in a sequence created with start stop step
Question - 16 [ O Level JAN-2025]
Write a Program to calculate factorial of a number using recursion.
Question - 17
Python function to accept 2 number and return addition subtraction multiplication and division
Topic : File Processing in Python
Question - 1 [ O Level JAN-2025]
Write a program that opens a file named data.txt in write mode, and writes multiple lines to it from a list of strings.
Question - 2 [ O Level JUL-2025]
Write a Python program to open the file with a for appending, then add a list of texts to append to the file.
Question - 18
Python program to create a function that would read contents from the sports.dat and creates a file named Atheletic.dat
Topic : Modules in Python
Question - 4
Python program to generate 3 random integers between 100 and 999 which is divisible by 5
Question - 6 [ O Level JAN-2025]
Write a function that prints the current date and time in a formatted way ("Year-Month-Day Hour : Minute)
Topic : NumPy Basics
Question - 1 [ O Level JAN-2025]
Write a NumPy program to create a 5x5 array with random values and replace the minimum value with 0.
Question - 2 [ O Level JAN-2025]
Create an array from [10, 15, 20, 25, 30]. Use Boolean indexing to create a new array with elements greater than 15.
Question - 4 [ O Level JAN-2023]
Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Topic : String Handling in Python
Question - 1
Python program input string and prints its characters in different lines two characters per line
Question - 1
Python program to find a side of a right angled triangle whose two sides and an angle is given
Question - 2
Python program to obtain the marks in computer of some student and find mean median and mode
Question - 4
Python program to accept three side of triangle and find its area by using Herons Formula
Question - 10
Python program to print the volume of a cylinder when radius and height of the cylinder is given by user
Question - 11
Python program that asks your height in centimeters and converts it into foot and inches
Question - 15
Python program to take the temperatures of all 7 days of the week and displays the average temperature of that week
Question - 39
Python program that asks a user for a number of years and then prints out the number of days hours minutes and seconds
Question - 42
Python program to take two inputs for day month and then calculate which day of the year
Question - 49 [ O Level JUL-2025]
Write a program that takes 2 numbers as command line arguments and prints its sum.
Question - 51
Python program to input 3 numbers from user and check these are unique numbers are not
Question - 53
Python program to take two numbers and print if the first number is fully divisible by second number or not
Question - 56
Python program to read 3 numbers in 3variables and swap first two variables with the sums of first and second
Question - 63
Python program to input three unequal numbers and display the greatest and the smallest number
Question - 64
Python program to take two numbers and check that the first number is fully divisible by second number or not
Question - 70
Python program to input assets liabilities and capital then check accounting equation means balanced or not
Question - 72
Python program to calculate debt to equity check whether it is risky scenario for investor or not
Question - 73
Python program to input 2 integer number and check where they are same of different number
Question - 74 [ O Level JAN-2025]
Write a program that checks if a number is positive using the assert statement.
Question - 75
Pythoon program to read todays date only date Part from user Then display how many days are left in the current month
Question - 76
Python program to compute the result when two numbers and one operator is given by user
Question - 83
Python program to input length of three sides of a triangle Then check if these sides will form a triangle or not
Question - 84
Python program to input 3 sides of a triangle and print whether it is an equilateral scalene or isosceles triangle
Question - 85
Python program using if Elif else statement to find the number of days present in a month
Question - 86
Python program to accept marks of English math and science and display the appropriate stream allotted to the candidate
Question - 90
Python program to input any string and count number of uppercase and lowercase letters
Question - 95
Python program to find the difference between greatest and smallest digits presents in the number
Question - 106
Python program to check whether it is a prime number or not If it is not a prime then display the next number that is prime
Question - 107 [ O Level JUL-2025]
Implement Python Script to check given number is Armstrong or not.
Question - 108
Python program to calculate compound simple interest after taking the principle rate and time
Question - 113
Python program to find the average of the list of the numbers entered through keyboard
Question - 114
Python program to find the largest number from the list of the numbers entered through keyboard
Question - 119
Python program to input any number and to print all natural numbers up to given number
Question - 120
Python program to input any number and to find sum of all natural numbers up to given number
Question - 122
Python program to calculate the sum of odd numbers divisible by 5 from the range 1 to 100
Question - 131
Python program to Print numbers from 11 to N When the number is a multiple of 3 print Tipsy when it is a multiple of 7 print Topsy
Question - 140 [ O Level JAN-2025]
Write a program that takes two integers a and b as input. Print all the numbers between a and b (inclusive) that are divisible by both 3 and 5. If no such numbers exist, display No numbers found
Question - 143 [ O Level JUL-2025]
Write a program that takes two integers m and n (where m < n) as input and computes the sum of all even numbers between m and n (inclusive). Use the pass statement for numbers that are not even.
Question - 148 [ O Level JUL-2025]
Implement Python Script to generate prime numbers series up to n.
Topic : Sequence data types in python
Question - 1
Python program to find the 2nd largest number from the list of the numbers entered through keyboard.
Question - 4
Python program to read marks of six subjects and to print the marks scored in each subject and show the total marks
Question - 8
Python program to generate in the Fibonacci series and store it in a list Then find the sum of all values
Question - 9
Python program to find minimum element from a list of elements along with its index in the list
Question - 16
Python program that input a list, replace it twice and then prints the sorted list in ascending and descending order
Question - 17
Python program to check if the maximum element of the list lies in the first half of the list or in the second half
Question - 18
Python program to display the maximum elements from the two list along with its index in its list
Question - 25
Python program to inter list of string and create a new list that consist of those strings with their first characters removed
Question - 27
Python program to create a list using for loop which consist square of the integers 1 through 50
Question - 28
Python program to create a list using for loop which consist a bb ccc dddd that ends with 26 copies of the letter z.
Question - 29
Python program that takes any two list L and M of the same size and adds their elements together in another third list
Question - 30
Python program to rotates the elements of list so that fist elements move to second and second to the third
Question - 32
Python program to display the maximum and minimum values form specified range of indexes of a list
Question - 33
Python program to compare two equal sized list and print the first index where they differ
Question - 34
Python program that receives a Fibonacci series term and returns a number telling which term it is
Question - 35
Python Program to accept three distinct digits and print all possible combinations from the digits
Question - 37 [ O Level JUL-2025]
Write a program that takes as input a list having a mix of 10 positive numbers and a key value.
Question - 38 [ O Level JUL-2025]
Create a Python program that removes even duplicate positive integer numbers (includes zero)
Question - 39 [ O Level JUL-2025]
Create a Python program that finds the second smallest number in a list of positive integers (including zero).
Question - 41
Python program using a function that returns the area and circumference of a circle whose radius is passed as an argument
Question - 48
Python program to create a nested tuple to store roll number name and marks of students
Question - 49
Python program that interactively creates a nested tuple to store the marks in three subjects for five students
Question - 50 [ O Level JAN-2025]
Write a Python program to check whether an element exist within a tuple.
Question - 54
Python program to create a dictionary whose keys are month names and values are their corresponding number of days
Question - 55
Python program to enter names of employees and their salaries as input and store them in a dictionary
Question - 57
Python program to convert a number entered by the user into its corresponding number in words
Question - 60
Python Program to Create a dictionary whose keys are month name and whose values are number of days in the corresponding month
Question - 63
Python program that lists the over lapping keys of the two dictionaries if a key of d1 is also a key of d2 the list it
Question - 66
Python program to create a new dictionary D2 having same keys as D1 but values as the sum of the list elements
Question - 68 [ O Level JAN-2025]
Create a dictionary with RollNo and Percentage of 10 students. Write a program to print only those RollNo from the dictionary where percentage is greater than 50.
Question - 70 [ O Level JAN-2022]
Python function that takes a string as parameter and returns a string with every successive repetitive character replaced
Question - 71 [ O Level JUL-2025]
Implement python script to accept line of text and find the number of characters, number of vowels and number of blank spaces in it.
Topic : Functions in Python
Question - 1 [ O Level JUL-2023]
Write a function with name dividebyfive which generate and prints a random integer number from the range 0 to 100 and then return True if the randomly generated number is divisible by 5, and False otherwise.
Question - 7
Python function to find the sum of all numbers between 100 and 500 which are divisible by 2
Question - 9 [ O Level JUL-2025]
Python Function to Compute the Sum of n Terms of the Following Series
Question - 12
Python program that generates six random numbers in a sequence created with start stop step
Question - 16 [ O Level JAN-2025]
Write a Program to calculate factorial of a number using recursion.
Question - 17
Python function to accept 2 number and return addition subtraction multiplication and division
Topic : File Processing in Python
Question - 1 [ O Level JAN-2025]
Write a program that opens a file named data.txt in write mode, and writes multiple lines to it from a list of strings.
Question - 2 [ O Level JUL-2025]
Write a Python program to open the file with a for appending, then add a list of texts to append to the file.
Question - 18
Python program to create a function that would read contents from the sports.dat and creates a file named Atheletic.dat
Topic : Modules in Python
Question - 4
Python program to generate 3 random integers between 100 and 999 which is divisible by 5
Question - 6 [ O Level JAN-2025]
Write a function that prints the current date and time in a formatted way ("Year-Month-Day Hour : Minute)
Topic : NumPy Basics
Question - 1 [ O Level JAN-2025]
Write a NumPy program to create a 5x5 array with random values and replace the minimum value with 0.
Question - 2 [ O Level JAN-2025]
Create an array from [10, 15, 20, 25, 30]. Use Boolean indexing to create a new array with elements greater than 15.
Question - 4 [ O Level JAN-2023]
Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Topic : String Handling in Python
Question - 1
Python program input string and prints its characters in different lines two characters per line
Question - 1
Python program to find the 2nd largest number from the list of the numbers entered through keyboard.
Question - 4
Python program to read marks of six subjects and to print the marks scored in each subject and show the total marks
Question - 8
Python program to generate in the Fibonacci series and store it in a list Then find the sum of all values
Question - 9
Python program to find minimum element from a list of elements along with its index in the list
Question - 16
Python program that input a list, replace it twice and then prints the sorted list in ascending and descending order
Question - 17
Python program to check if the maximum element of the list lies in the first half of the list or in the second half
Question - 18
Python program to display the maximum elements from the two list along with its index in its list
Question - 25
Python program to inter list of string and create a new list that consist of those strings with their first characters removed
Question - 27
Python program to create a list using for loop which consist square of the integers 1 through 50
Question - 28
Python program to create a list using for loop which consist a bb ccc dddd that ends with 26 copies of the letter z.
Question - 29
Python program that takes any two list L and M of the same size and adds their elements together in another third list
Question - 30
Python program to rotates the elements of list so that fist elements move to second and second to the third
Question - 32
Python program to display the maximum and minimum values form specified range of indexes of a list
Question - 33
Python program to compare two equal sized list and print the first index where they differ
Question - 34
Python program that receives a Fibonacci series term and returns a number telling which term it is
Question - 35
Python Program to accept three distinct digits and print all possible combinations from the digits
Question - 37 [ O Level JUL-2025]
Write a program that takes as input a list having a mix of 10 positive numbers and a key value.
Question - 38 [ O Level JUL-2025]
Create a Python program that removes even duplicate positive integer numbers (includes zero)
Question - 39 [ O Level JUL-2025]
Create a Python program that finds the second smallest number in a list of positive integers (including zero).
Question - 41
Python program using a function that returns the area and circumference of a circle whose radius is passed as an argument
Question - 48
Python program to create a nested tuple to store roll number name and marks of students
Question - 49
Python program that interactively creates a nested tuple to store the marks in three subjects for five students
Question - 50 [ O Level JAN-2025]
Write a Python program to check whether an element exist within a tuple.
Question - 54
Python program to create a dictionary whose keys are month names and values are their corresponding number of days
Question - 55
Python program to enter names of employees and their salaries as input and store them in a dictionary
Question - 57
Python program to convert a number entered by the user into its corresponding number in words
Question - 60
Python Program to Create a dictionary whose keys are month name and whose values are number of days in the corresponding month
Question - 63
Python program that lists the over lapping keys of the two dictionaries if a key of d1 is also a key of d2 the list it
Question - 66
Python program to create a new dictionary D2 having same keys as D1 but values as the sum of the list elements
Question - 68 [ O Level JAN-2025]
Create a dictionary with RollNo and Percentage of 10 students. Write a program to print only those RollNo from the dictionary where percentage is greater than 50.
Question - 70 [ O Level JAN-2022]
Python function that takes a string as parameter and returns a string with every successive repetitive character replaced
Question - 71 [ O Level JUL-2025]
Implement python script to accept line of text and find the number of characters, number of vowels and number of blank spaces in it.
Topic : Functions in Python
Question - 1 [ O Level JUL-2023]
Write a function with name dividebyfive which generate and prints a random integer number from the range 0 to 100 and then return True if the randomly generated number is divisible by 5, and False otherwise.
Question - 7
Python function to find the sum of all numbers between 100 and 500 which are divisible by 2
Question - 9 [ O Level JUL-2025]
Python Function to Compute the Sum of n Terms of the Following Series
Question - 12
Python program that generates six random numbers in a sequence created with start stop step
Question - 16 [ O Level JAN-2025]
Write a Program to calculate factorial of a number using recursion.
Question - 17
Python function to accept 2 number and return addition subtraction multiplication and division
Topic : File Processing in Python
Question - 1 [ O Level JAN-2025]
Write a program that opens a file named data.txt in write mode, and writes multiple lines to it from a list of strings.
Question - 2 [ O Level JUL-2025]
Write a Python program to open the file with a for appending, then add a list of texts to append to the file.
Question - 18
Python program to create a function that would read contents from the sports.dat and creates a file named Atheletic.dat
Topic : Modules in Python
Question - 4
Python program to generate 3 random integers between 100 and 999 which is divisible by 5
Question - 6 [ O Level JAN-2025]
Write a function that prints the current date and time in a formatted way ("Year-Month-Day Hour : Minute)
Topic : NumPy Basics
Question - 1 [ O Level JAN-2025]
Write a NumPy program to create a 5x5 array with random values and replace the minimum value with 0.
Question - 2 [ O Level JAN-2025]
Create an array from [10, 15, 20, 25, 30]. Use Boolean indexing to create a new array with elements greater than 15.
Question - 4 [ O Level JAN-2023]
Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Topic : String Handling in Python
Question - 1
Python program input string and prints its characters in different lines two characters per line
Question - 1 [ O Level JUL-2023]
Write a function with name dividebyfive which generate and prints a random integer number from the range 0 to 100 and then return True if the randomly generated number is divisible by 5, and False otherwise.
Question - 7
Python function to find the sum of all numbers between 100 and 500 which are divisible by 2
Question - 9 [ O Level JUL-2025]
Python Function to Compute the Sum of n Terms of the Following Series
Question - 12
Python program that generates six random numbers in a sequence created with start stop step
Question - 16 [ O Level JAN-2025]
Write a Program to calculate factorial of a number using recursion.
Question - 17
Python function to accept 2 number and return addition subtraction multiplication and division
Topic : File Processing in Python
Question - 1 [ O Level JAN-2025]
Write a program that opens a file named data.txt in write mode, and writes multiple lines to it from a list of strings.
Question - 2 [ O Level JUL-2025]
Write a Python program to open the file with a for appending, then add a list of texts to append to the file.
Question - 18
Python program to create a function that would read contents from the sports.dat and creates a file named Atheletic.dat
Topic : Modules in Python
Question - 4
Python program to generate 3 random integers between 100 and 999 which is divisible by 5
Question - 6 [ O Level JAN-2025]
Write a function that prints the current date and time in a formatted way ("Year-Month-Day Hour : Minute)
Topic : NumPy Basics
Question - 1 [ O Level JAN-2025]
Write a NumPy program to create a 5x5 array with random values and replace the minimum value with 0.
Question - 2 [ O Level JAN-2025]
Create an array from [10, 15, 20, 25, 30]. Use Boolean indexing to create a new array with elements greater than 15.
Question - 4 [ O Level JAN-2023]
Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Topic : String Handling in Python
Question - 1
Python program input string and prints its characters in different lines two characters per line
Question - 1 [ O Level JAN-2025]
Write a program that opens a file named data.txt in write mode, and writes multiple lines to it from a list of strings.
Question - 2 [ O Level JUL-2025]
Write a Python program to open the file with a for appending, then add a list of texts to append to the file.
Question - 18
Python program to create a function that would read contents from the sports.dat and creates a file named Atheletic.dat
Topic : Modules in Python
Question - 4
Python program to generate 3 random integers between 100 and 999 which is divisible by 5
Question - 6 [ O Level JAN-2025]
Write a function that prints the current date and time in a formatted way ("Year-Month-Day Hour : Minute)
Topic : NumPy Basics
Question - 1 [ O Level JAN-2025]
Write a NumPy program to create a 5x5 array with random values and replace the minimum value with 0.
Question - 2 [ O Level JAN-2025]
Create an array from [10, 15, 20, 25, 30]. Use Boolean indexing to create a new array with elements greater than 15.
Question - 4 [ O Level JAN-2023]
Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Topic : String Handling in Python
Question - 1
Python program input string and prints its characters in different lines two characters per line
Question - 4
Python program to generate 3 random integers between 100 and 999 which is divisible by 5
Question - 6 [ O Level JAN-2025]
Write a function that prints the current date and time in a formatted way ("Year-Month-Day Hour : Minute)
Topic : NumPy Basics
Question - 1 [ O Level JAN-2025]
Write a NumPy program to create a 5x5 array with random values and replace the minimum value with 0.
Question - 2 [ O Level JAN-2025]
Create an array from [10, 15, 20, 25, 30]. Use Boolean indexing to create a new array with elements greater than 15.
Question - 4 [ O Level JAN-2023]
Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Topic : String Handling in Python
Question - 1
Python program input string and prints its characters in different lines two characters per line
Question - 1 [ O Level JAN-2025]
Write a NumPy program to create a 5x5 array with random values and replace the minimum value with 0.
Question - 2 [ O Level JAN-2025]
Create an array from [10, 15, 20, 25, 30]. Use Boolean indexing to create a new array with elements greater than 15.
Question - 4 [ O Level JAN-2023]
Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Topic : String Handling in Python
Question - 1
Python program input string and prints its characters in different lines two characters per line
Question - 1