-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
19 lines (15 loc) · 684 Bytes
/
Copy pathmain.py
File metadata and controls
19 lines (15 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from application.book_writer_application import BookWriterApplication
from application.math_tutor_applications.quadratic_equation import MathTutorApplication
from application.math_tutor_applications.sorting import MathTutorSorting
from application.weather_application import WeatherApplication
def main():
# Create a dictionary with boolean keys and application objects as values
applications = {
False: BookWriterApplication(),
False: MathTutorApplication(),
False: MathTutorSorting(),
True: WeatherApplication(),
}
any(app.run() for should_run, app in applications.items() if should_run)
if __name__ == "__main__":
main()