My issue
explain the answer
Learning course: Practice Python
Problem Link: CodeChef: Practical coding for everyone
explain the answer
Learning course: Practice Python
Problem Link: CodeChef: Practical coding for everyone
It is easy Option1 and Option2 are correct.
In both cases they compare X with 2*Y to check that it is greater than or equal.
So both cases are same, but way of checking are little bit different.
In option1 condition is X>=2Y which means check X is greater than or equal to 2Y or not.
in option 2 condition is 2Y<=X which means check 2Y is less than or equal to X or not.
Both options are same.