Create a Tuple of Cities
Python
10 pts
Create a Tuple of Cities
Create a tuple called cities that contains "Asmara", "Keren" and "Massawa", in that order.
Then print the tuple, its length and its type, each on its own line.
Expected output:
('Asmara', 'Keren', 'Massawa')
3
<class 'tuple'>
Checklist
- Create
cities, a tuple with"Asmara","Keren"and"Massawa", in that order. - Print the tuple, its length and its type, each on its own line.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
