Style Check
You receive two style scores from 0 to 10: yours and your date’s. Write a function date_fashion that takes you and date and returns the date result. If either score is 2 or lower, return 0; otherwise, if either score is 8 or higher, return 2; in all other cases, return 1.
Примеры
Ввод
5, 10Вывод
2Ввод
5, 2Вывод
0Ввод
5, 5Вывод
1Нужно реализовать
def date_fashion(you: int, date: int) -> int:
Теги
math
Prisijunkite, kad matytumėte pateikimų istoriją
PrisijungtiPrisijunkite, kad naudotumėte DI mentorių
PrisijungtiVisible tests
1
Input
5, 10Expected
22
Input
5, 2Expected
03
Input
5, 5Expected
14
Input
9, 1Expected
05
Input
3, 3Expected
16
Input
8, 8Expected
2Focus radio
Paused · SomaFM · Fluid