Professional Documents
Culture Documents
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:
Input:
Output:
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:
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:
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: