()
| 43 | |
| 44 | # tag::ASIA_COUNTRIES[] |
| 45 | def match_asian_countries(): |
| 46 | results = [] |
| 47 | for city in cities: |
| 48 | match city: |
| 49 | case City(continent='Asia', country=cc): |
| 50 | results.append(cc) |
| 51 | return results |
| 52 | # end::ASIA_COUNTRIES[] |
| 53 | |
| 54 | # tag::ASIA_COUNTRIES_POSITIONAL[] |