0% found this document useful (0 votes)
3 views1 page

11am Python

The document outlines various Python programming tasks, including string manipulation, data type differences, and list operations. It includes specific examples such as removing special characters, counting vowels, and merging lists while removing duplicates. Additionally, it covers tasks like reversing nested lists and converting time formats.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

11am Python

The document outlines various Python programming tasks, including string manipulation, data type differences, and list operations. It includes specific examples such as removing special characters, counting vowels, and merging lists while removing duplicates. Additionally, it covers tasks like reversing nested lists and converting time formats.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PYTHON

1. Remove special symbols / punctuation from a string


str1 = "/*Jon is @developer & musician"
2. Write a program to find words with both alphabets and
numbers from an input string.
str1 = "Emma25 is Data scientist50 and AI Expert"
3. What is the difference between a mutable data type and an
immutable data type?
4. Count the number of vowels (a, e, i, o, u) in a given string.
5. Remove all duplicates from a list while preserving order
6. Find the longest word in a string.
7. Split a certain list into two lists: one for even-indexed elements
and one for odd-indexed elements.
8. Count the occurrences of each word in a given sentence.
9. Convert minutes into hours and remaining minutes (e.g., 135
mins becomes 2 hrs 15 mins).
10. Merge two lists and remove common elements.
11. Wap to find numbers b/w 200 an 900 both inclusive where
each digit of number is an odd number
12. reverse each list in Nested list
Original list of list = [[1,2,3,4],[5,6,7,8],[9,10,11,12],
[13,14,15,16]]
Reverse each list in the said list of lists:
[[4,3,2,1],[8,7,6,5],[12,11,10,9],[,16,15,14,13]]

You might also like