0% found this document useful (0 votes)
94 views

Introduction To Python Programming: Assignment 2

This document contains instructions for an assignment on Python programming. It lists 15 tasks involving lists, dictionaries, and tuples for a student to complete. The tasks include swapping elements in a list, reversing a list, multiplying numbers in a list, sorting dictionaries by value, checking for keys in dictionaries, removing keys from dictionaries, and more. The assignment is due on June 3, 2020.

Uploaded by

pratik thakare
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views

Introduction To Python Programming: Assignment 2

This document contains instructions for an assignment on Python programming. It lists 15 tasks involving lists, dictionaries, and tuples for a student to complete. The tasks include swapping elements in a list, reversing a list, multiplying numbers in a list, sorting dictionaries by value, checking for keys in dictionaries, removing keys from dictionaries, and more. The assignment is due on June 3, 2020.

Uploaded by

pratik thakare
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Introduction to Python Programming

Assignment 2

Submission Date:03.06.2020

1. Write a Python program to swap two elements in a list.


2. Write a Python program for Reversing a List.
3. Write a Python program to Multiply all numbers in the list.
4. Write a Python program to interchange first and last elements in a list
5. Write a Python program to find largest number in a list.
6. Write a Python program to find the sum of all items in a dictionary.
7. Write a Python program for Merging two Dictionaries.
8. Write a Python script to sort (ascending and descending) a dictionary by
value.

9. Write a Python script to check whether a given key already exists in a


dictionary.

10. Write a Python program to remove a key from a dictionary.


11. Write a Python program to create a tuple with different data types.
12. Write a Python program to convert a tuple to a string.
13. Write a Python program to find the repeated items of a tuple.
14. Write a Python program to convert a list of characters into a string.
15. Write a Python program to append a list to the second list.

You might also like