You are on page 1of 12

QUESTIONS

1) Count and display number of vowels,


consonants, and uppercase, and lowercase
characters in string.

Input:

Output:
2)Input a string and determine whether it is
a palindrome or not; convert the case of
Characters in the strings

Input:

Output:
3)Find the largest/smallest number in a
list/tuple

Input:

Output:

4)Input a list of numbers and swap elements at


the even location with the elements
at the odd location.

Input:
Output:

5) Input a list/tuple of elements search and for


a given element in the list/tuple.

Input:

Output:
6) Input a list of numbers and test if a number
is equal to the sum of the cubes of its
digits.

Input:

Output:
7) Find the smallest and largest such number
from the given list of numbers.

Input:

Output:

8) Create a dictionary with the roll number,


name and marks of n students in a class and
display the names of students who have marks
above 75.

Input:
Output:
9) Write a user-defined function words() to
accept a sentence from the console and display
the total number of times vowels are present in
that sent
Input:
Output:

10) Write a user-defined function words() to


accept a sentence from the console and display
the total number of times words are present in
that sentence.
Input:

Output:
11) Write a user-defined function words()
to accept a sentence from the console and
display the total number of times vowels
are present in that sentence.

Input:

Output:
12) Write a Python program to take
elements of the tuple from the user.
Display the tuple in a sort sequence.

Input:

Output:

You might also like