Last updated on 5/9/23
Manage Program Logic in Python
- Manage program logic in Python
Which data type is used to run an if/else statement in Python?
Which of the following can be used to check multiple conditions?Careful, there are several correct answers.
Given the following list
global_cities = ["New York", "Paris", "London", "Shanghai"], which of the following for loops will print each element in the list?
- For city in global_cities:print(city)
- for city in global_cities;print(city)
- for city in global_cities:print(global_cities)
- for city in global_cities:print(city)
- for city in global_citiesprint(city)