Chargement de l'exercice…
Programs often need to check whether a number is close to an important marker, such as 100 or 200. Write a function near_hundred that takes a number n. Return True if it is no more than 10 away from either 100 or 200, otherwise return False.
93True90True89Falsedef near_hundred(n: int) -> bool:
Connectez-vous pour voir l'historique des soumissions
Se connecterConnectez-vous pour utiliser le Mentor IA
Se connecterThey run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.