Get link Facebook X Pinterest Email Other Apps December 08, 2021 Python If-Else - Hacker Rank SolutionTask Given an integer, , perform the following conditional actions:If is odd, print WeirdIf is even and in the inclusive range of to, print Not WeirdIf is even and in the inclusive range of to, print WeirdIf is even and greater than, print Not WeirdInput FormatA single line containing a positive integer, .ConstraintsOutput FormatPrint Weird if the number is weird; otherwise, print Not Weird.Sample Input 03 Sample Output 0Weird Sample Input 124 Sample Output 1Not Weird Python If-Else - Hacker Rank Solution :- Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment