Skip to content

This is about a set of tests to the python programmers

Notifications You must be signed in to change notification settings

MahaKhudhair/PythonChallenge-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PythonChallenge

Q.1: If you have the two lists below:
L1 = ['Iraq', 'Japan', 'Australia', 'Egypt', 'Turkey']
L2 = ['Sydney', 'Istanbul', 'Tokyo', 'Baghdad', 'Cairo']
Your program should be able to print the final list = [ ['Iraq', 'Baghdad'], ['Japan', 'Tokyo'], ['Australia','Sydney'], ['Egypt', 'Cairo'], ['Turkey', 'Istanbul'] ]

Q.2: If you have the list in this form: L = [['Name', 'Gender']], and your list is:
my_List= [ ['Ali', 'Male'], ['Maha', 'Female'], ['Laith','Male'], ['Lamiaa', 'Female'], ['Zainab', 'Female'], ['Lena','Female'], ['Hanan', 'Female'] ]
Your program should be able to print the gender of each name entered during the execution, for example: When the user enter 'Ali', the output should be 'Male'.

About

This is about a set of tests to the python programmers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages