Python for Engineers
Winter 2026
Assignment 3: Strings and Lists
Easy
1. Take a string and print its length.
2. Reverse a string.
3. Check if a string is uppercase or lowercase.
4. Count vowels in a string.
5. Print elements of a list.
Medium
1. Find largest and smallest element in a list.
2. Count frequency of an element in a list.
3. Remove duplicates from a list.
4. Check if a string is palindrome.
5. Sort a list in ascending order.
Hard
[Link] the second largest element in a list without using sort().
Hint: Track max and second max in one traversal.