HackerRank Python Problem No 1 || If elif else

Published: 31 August 2021
on channel: Bhanu Prathap
5,583
47

Given an integer, , perform the following conditional actions:

If is odd, print Weird
If is even and in the inclusive range of to , print Not Weird
If is even and in the inclusive range of to , print Weird
If is even and greater than , print Not Weird

Input Format
A single line containing a positive integer, .

Output Format
Print Weird if the number is weird. Otherwise, print Not Weird.

Source:
HackerRank

Link:https://www.hackerrank.com/challenges...


On this page of the site you can watch the video online HackerRank Python Problem No 1 || If elif else with a duration of hours minute second in good quality, which was uploaded by the user Bhanu Prathap 31 August 2021, share the link with friends and acquaintances, this video has already been watched 5,583 times on youtube and it was liked by 47 viewers. Enjoy your viewing!