title: If y in range Python Error Catching
body: <p>I seem to be having an issue with an error catch that I'm trying to implement in my code. Basically, if somebody writes something out of the scope from the range, I want my error message to show up. Otherwise, it'll just continue on with the program.
  Here's the code.</p>
  
  <pre><code>n = 10
  
  while True:
      id_usager = input("Entrer l'ID de l'usager pour lequel vous voulez une recommandation (entre 0 et {}): ".format(n-1))
      if id_usager in range(n):
          calculer_scores_similarite(reseau)
          print("Pour la personne", id_usager, ", nous recommandons l'ami", recommander(id_usager, reseau, matrice_similarite))
          continue
      else:
          print(id_usager)
          print("Erreur: l'usager doit être un nombre entier entre ", 0, "et", n - 1, "inclusivement.\n")
  </code></pre>