zjfz-2019-s439462/intro/Task103.py
2020-01-12 14:35:16 +01:00

5 lines
99 B
Python

def probability(x: float) -> float:
if 0 <= x <= 1:
return x
else:
return 0