Code initial
Code:
from typing import List, Set, Dict, Tuple
from random import randrange
print("\n----------------------------")
print("------- Exercice 3 -------")
print("----------------------------\n")
### 3 (a)
### 3 (b)
### 3 (c)
### 3 (d)
### 3 (e)
### 3 (f)
print("\n----------------------------")
print("------- Exercice 4 -------")
print("----------------------------\n")
### 4 (a) & (b)
# seasons: List[SeriesSeason] = [
# SeriesSeason("The Expanse", season_num=1, start_year=2015, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=4, start_year=2015, num_episodes=10),
# SeriesSeason("The Expanse", season_num=3, start_year=2018, num_episodes=13),
# SeriesSeason("Westworld", season_num=2, start_year=2014, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=1, start_year=2011, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=8, start_year=2015, num_episodes=6),
# SeriesSeason("The Expanse", season_num=2, start_year=2017, num_episodes=13),
# SeriesSeason("Game of Thrones", season_num=3, start_year=2013, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=6, start_year=2016, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=4, start_year=2014, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=7, start_year=2017, num_episodes=7),
# SeriesSeason("Westworld", season_num=1, start_year=2016, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=2, start_year=2012, num_episodes=10),
# ]
### 4 (c)
### 4 (d)
### 4 (e)
from random import randrange
print("\n----------------------------")
print("------- Exercice 3 -------")
print("----------------------------\n")
### 3 (a)
### 3 (b)
### 3 (c)
### 3 (d)
### 3 (e)
### 3 (f)
print("\n----------------------------")
print("------- Exercice 4 -------")
print("----------------------------\n")
### 4 (a) & (b)
# seasons: List[SeriesSeason] = [
# SeriesSeason("The Expanse", season_num=1, start_year=2015, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=4, start_year=2015, num_episodes=10),
# SeriesSeason("The Expanse", season_num=3, start_year=2018, num_episodes=13),
# SeriesSeason("Westworld", season_num=2, start_year=2014, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=1, start_year=2011, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=8, start_year=2015, num_episodes=6),
# SeriesSeason("The Expanse", season_num=2, start_year=2017, num_episodes=13),
# SeriesSeason("Game of Thrones", season_num=3, start_year=2013, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=6, start_year=2016, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=4, start_year=2014, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=7, start_year=2017, num_episodes=7),
# SeriesSeason("Westworld", season_num=1, start_year=2016, num_episodes=10),
# SeriesSeason("Game of Thrones", season_num=2, start_year=2012, num_episodes=10),
# ]
### 4 (c)
### 4 (d)
### 4 (e)
Last modified: Friday, 1 November 2019, 10:13