vendredi 7 juin 2019

Is the int(n) is necessary for if-else range statements here?

Here in if statement can i use n instate of int(n) ? Give me the right instruction. Thanks in advance.

n = int(input())

if int(n) in range(2,5):
     print(n)

Aucun commentaire:

Enregistrer un commentaire