CS
CS
a='hello'
b='virat'
for i in range(len(a)):
print(a[i],b[i])
15 What will be the output of following program: str = "my name is kunfu pandya";
print (str.capitalize())
30 Write a Program to Take in a String and Replace Every Blank Space with Hyphen.
31
Write a Program to accept numbers in list and count and display frequency of a given
element in a list of numbers.
32 WAP to calculate mean of a given list of numbers. The list elements are input by user.
33 Write a program to input names of n students and store them in a tuple. Also, input a
name from the user and find if this student is present in the tuple or not.
34 Write a Program to accept list elements and searching element from user. Search input
element using Binary Search technique.
35 Write a Program to accept numbers in list. Sort the list in ascending order using bubble
sort technique and display.
36 Write a Program to Calculate the Number of Upper Case Letters and Lower Case Letters
in a String
39 Write a Program to Count the Occurrences of Each Word in a Given String Sentence
42 WAP to calculate the average of the numbers of the tuple. The tuple elements are input
by user.
43 Write a program to input n numbers from the user. Store these numbers in a tuple.
Print the maximum and minimum number from this tuple
44 What do you mean by tuple unpacking? Cite example. Define a tuple TP having only
one element 6.7.
45 Write a program in python to input a tuple of integers and find the second lowest value
in the tuple. Also display the prime numbers present in it.
46 Input a list of numbers from the user.
(i) Add 3 with the numbers present at indices multiples of 3.
(ii) Rearrange the list where all positive numbers come at left, then 0, then
negative numbers. The list need not to be sorted.