0% found this document useful (0 votes)
63 views

Practical Assignment Computer Science XI

The document outlines a Computer Science class for 11th grade in the year 2022-2023 that will use Python as the programming language. It lists 20 programming challenges to be completed in Python that involve tasks like accepting user input, string manipulation with counting characters and substrings, toggling case, looping through characters, and displaying patterns. Students will gain experience with variables, input/output, strings, and loops in Python.

Uploaded by

Neo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Practical Assignment Computer Science XI

The document outlines a Computer Science class for 11th grade in the year 2022-2023 that will use Python as the programming language. It lists 20 programming challenges to be completed in Python that involve tasks like accepting user input, string manipulation with counting characters and substrings, toggling case, looping through characters, and displaying patterns. Students will gain experience with variables, input/output, strings, and loops in Python.

Uploaded by

Neo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Computer Science (083)

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.

18. Write a program to replace all ‘a’ in a string by symbol ‘@’.

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.

Eg. if the word is “river” then it should display as shown below

r
ri
riv
rive
river

You might also like