[go: up one dir, main page]

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

Dictionary Tasksheet

The document contains a series of programming tasks related to dictionaries in Python. It includes tasks such as sorting dictionaries, concatenating multiple dictionaries, merging two dictionaries, and validating user credentials against a dictionary of usernames and passwords. Additionally, there is a reference to a table for checking properties of data types mentioned in the document.

Uploaded by

Muhammad Yasir
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)
6 views1 page

Dictionary Tasksheet

The document contains a series of programming tasks related to dictionaries in Python. It includes tasks such as sorting dictionaries, concatenating multiple dictionaries, merging two dictionaries, and validating user credentials against a dictionary of usernames and passwords. Additionally, there is a reference to a table for checking properties of data types mentioned in the document.

Uploaded by

Muhammad Yasir
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
You are on page 1/ 1

Address: WsCube Tech, Laxmi Tower, Bhaskar Circle, Jodhpur, Rajasthan, India

Contact Us at: +919269698122, +919024244886. Mail us at: info@wscubetech.com

Dic onary Tasksheet

Q.1 Write a program to sort a dic onary in ascending/descending order by key and
ascending/descending order by value.
Q.2 Write a program to create three dic onaries and concatenate them to create
fourth dic onary.
Q.3 Suppose there are two dic onaries called boys and girls containing names as
keys and ages as values. Write a program to merge the two dic onaries into a third
dic onary.
Q.4 Create a dic onary of 10 user names and passwords. Receive the user name and
password from keyboard and search for them in the dic onary. Print appropriate
message on the screen based on whether a match is found or not.
Q.5) In the following table check the box if a property is supported by the data types
men oned in columns?

You might also like