Practical Assignment Computer Science XI
Practical Assignment Computer Science XI
Class XI :2022-2023
Note: Programming language –Python
•Take the input and display the result with appropriate message.
•Use proper name of the variables.
result with appropriate message.•Use proper name of the variables.1. Write a Python script to accept principal amount, rate of interest a
10.
10 Enter a string in Python.Check whether the string has at least
one letter(character) and one number.
11. Enter a String and count number of vowels in it.
12. Enter a string in toggled case and convert upper case to lower
case and vice versa. Print the resultant string
13. Write a program to display each character of the following string
in separate line using 'for' loop.
str1 = Welcome to My Blog
14. Write a program to count the length of string without using inbuilt
function.
15. Write a program to accept the first name from the user and display
it as much times as its length.
16. Write a program to accept a string from the user and display the
string without space.
17. Write a program to accept a string and substring from the user and
display the frequency of substring in string.
19. Write a program to accept a string and substring from the user and
check whether the substring is existing/present in string or not.
20. Write a program to accept a word from the user and display it in
the following pattern.
r
ri
riv
rive
river