PSS Computer 11th (Fa3)
PSS Computer 11th (Fa3)
F. A.: III
CLASS: XIth
e. Question 10: Select the correct output of the following String operations:
str1 = 'Waha'
print (str1[:3] + 'Bhyi' + str1[-3:])
f. Which function will removes all leading and trailing spaces from a string?
Question 3. Programs . 3
a. Write a program that inputs two lists and creates a third, that contains all
elements of the first followed by all elements of the second.
b. Write a program that removes all capitalization from the string.
c. Write a program to count the frequency of a given element in a list of a
number.