Delayed flights
A certain airline offers flights departing to New York on Tuesdays and Fridays, but sometimes the flights are delayed:
| Delayed | On time | Total | |
|---|---|---|---|
| Tuesday | 24 | 114 | 138 |
| Friday | 11 | 127 | 138 |
| Total | 35 | 241 | 276 |
At the bottom of the Delayed column you have a total of 35, which means there were 35 delayed flights out of the total of 276 departures in the sample. Of these, 24 were on Tuesday and 11 on Friday.
Given the table, answer the following questions:
Bu egzersiz, kursun bir parçasıdır
Foundations of Probability in Python
Uygulamalı etkileşimli egzersiz
Bu egzersizi bu örnek kodu tamamlayarak deneyin.
# Needed quantities
On_time = ____
Total_departures = ____
# Probability calculation
P_On_time = ____ / ____
print(P_On_time)