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

PDF&Rendition 1 3

The document outlines Assignment 3 for a Python course, focusing on strings and lists with tasks categorized into easy, medium, and hard levels. Easy tasks include string manipulation and list element printing, while medium tasks involve finding largest/smallest elements and checking for palindromes. The hard task challenges students to find the second largest element in a list without using the sort function.

Uploaded by

ABCD EFG
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

PDF&Rendition 1 3

The document outlines Assignment 3 for a Python course, focusing on strings and lists with tasks categorized into easy, medium, and hard levels. Easy tasks include string manipulation and list element printing, while medium tasks involve finding largest/smallest elements and checking for palindromes. The hard task challenges students to find the second largest element in a list without using the sort function.

Uploaded by

ABCD EFG
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like