4th day of python challenges 69-77
This commit is contained in:
6
challenges69-79/challenge-070.py
Normal file
6
challenges69-79/challenge-070.py
Normal file
@@ -0,0 +1,6 @@
|
||||
tuple_list = ('Iraq', 'Jordon', 'Malaysia', 'Turkey', 'Japan')
|
||||
print(tuple_list)
|
||||
choose = str(input('Enter the name of country : ')).capitalize()
|
||||
print(tuple_list.index(choose))
|
||||
choose = int(input('Enter number to show country : '))
|
||||
print(tuple_list[choose])
|
Reference in New Issue
Block a user