Example HTML page

P-Assignment 14: Strings and Lists

Hi,

Please do the following programs.

1. Write a python script to read a string from the user and count the number of words in it.
2. Write a python script to read two strings from the user and concatenate the two strings and find the total number  of words in the concatenated list.
3. Write a python script to read a list from the user print the numbers which are greater than the average of the list. for example if list contains [1,2,3,4,5] average is 3. print the elements 4,5
4. Write a python script to read a list from the user and print the numbers which are less than the average of the list.for example if list contains [1,2,3,4,5] average is 3. print the elements 1,2.
5. Write a python script to read a list from the user and print the count of numbers which are less than the average of the list.for example if list contains [1,2,3,4,5] average is 3. count is 2.
6. Write a python script to read a list from the user and print the count of numbers which are greater than the average of the list.for example if list contains [1,2,3,4,5] average is 3. count is 2.
7. Write a python script to count the number of words whose length is length is less than 3.
8. Write a python script to count the number of words whose length is length is greater than 5.
9. Write a python script to print words whose length is length is less than 3.
10. Write a python script to print words whose length is greater than 5.

Example HTML page

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest