Day 3: Intro to Conditional Statements

  • + 0 comments

    n=int(input("enter the no.")) if((2<=n<=5)%2==0): print(n) else: print("wrong no")

    HI, friends, I got an error on this code that I want the values from 2 to 5 but I found that this statement always gave a true and display the output any friend can explain why this is happening