List:
Q1: Write a Python function to calculate the sum of all elements in a list.
Q2: Write a function to find the maximum and minimum values in a list without using built-in functions like max() or min() and print their values on screen.
Q3: Create a function that reverses a list without using built-in functions like reverse().
Q4: Given a list of numbers, create a new list that contains only the even numbers using list comprehension.
Q5: Write a function that filters out all the elements of a list that are divisible by a given number.
Q6: Given a list of lists, flatten it into a single list. For example, [[1, 2], [3, 4], [5, 6]] should become [1, 2, 3, 4, 5, 6].
Q7: Given a list, perform various slicing operations, such as extracting a sub-list, reversing a sub-list, and finding elements within a specific range.
Q8: Write a function to sort a list in ascending and descending order.
Q9: Write a function to remove duplicates from a list while maintaining the order of the remaining elements.
Q10: Write a function that takes two lists as input and returns a new list containing elements that are common in both lists.
Q11: Write a function to count the occurrences of a specific element in a list.
Q12: Create a function that splits a list into smaller sublists of a fixed size.
Q13: Write a function to check if a list is a palindrome (reads the same backward as forward).
Q14: Write a function to merge two sorted lists into a single sorted list.
Q15: Find the median value of a list (middle value when sorted).
Q16: Implement a function that shuffles the elements of a list randomly.
Q17: Create a function that partitions a list into two sublists based on a given condition.
Q18: Perform basic list operations like adding, removing, and updating elements based on user input.