All problems
EasyControl Flow
Lists, loops, conditionals
Loop through a list of (city, state) tuples and print only the cities in Maharashtra.
- #loops
- #conditionals
- #lists
Sample input
[(Mumbai, MH), (Hyd, TG), (Pune, MH), (Blr, KA), (Nagpur, MH)]
Sample output
Mumbai Pune Nagpur
lists-loops.py
Output
Press "Run code" to execute.
