


















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















































































Example:
Lists are used to store multiple items in a single variable. Lists are one of 4 built-in data types in Python used to store collections of data, the other 3 are Tuple, Set, and Dictionary, all with different qualities and usage. Lists are created using square brackets: Example:
Append & Insert: Extend:
Index: Count:
Sort: Reverse: Len:
Q1. slice the list from index 2 to 4 Q2. Find the length of list without using len( ) function
Q3. Check if element exist in list Q4. Find Second Largest Element from list
Q7. Seperate even and odd numbers
Q8. Reverse a list without using reverse()
Q2. Count Vowels in string Q3. Convert to uppercase and lowercase Q4. Concatenate two strings
Q5. Find the Length of String Q6. Check whether the string is palindrome or not
Q8. count Frequency of each character in string Q9. Replace all spaces with hypen in string
Q10. Replace all the spaces with hypen in string without using replace( )