discrete assignment5 & python hw5