Python If-Else | HackerRank Solution | Easy | Introduction | Hindi

Опубликовано: 17 October 2024
на канале: Simple Snip Code
6,992
70

#simplesnipcode #pythonprograms #pythoncode #hackerrank #hackerranksolution #hackerranksolutions #ifelse #ifelsestatement
Python If-Else | Hackerrank Python Solutions
Python If-Else | Intoduction | HackerRank

Problem:
Given an integer, n , perform the following conditional actions:
If n is odd, print Weird
If n is even and in the inclusive range of 2 to 5, print Not Weird
If n is even and in the inclusive range of 6 to 20, print Weird
If n is even and greater than 20, print Not Weird

Input Format
A single line containing a positive integer, n.
Output Format
Print Weird if the number is weird. Otherwise, print Not Weird.

Sample Input 0
3
Sample Output 0
Weird
Explanation 0
n=3
n is odd and odd numbers are weird, so print Weird.
Sample Input 1
24
Sample Output 1
Not Weird


► HackerRank Problem Link :- https://www.hackerrank.com/challenges...
► Source Code GitHub :- https://github.com/rahulgupta020/Hack...
► Source Code File :- https://drive.google.com/file/d/1iPNN...

► HackerRank Python Playlist :-    • HackerRank Python Solution | Problem ...  
► Python Programs Playlist :-    • Python Coding Tutorial for Python Pro...  
► Computer Networking Playlist :-    • Computer Networking Practical in Cisc...  

Your Query:
#2 : Python If-Else | Hackerrank Python Solutions
Python tutorial #2 || Python IF-ELSE - HackerRank solution
If Else & Elif Conditionals In Python
HackerRank Python If-Else problem solution | Python problems solutions
HackerRank Python If-Else Solution Explained - Python
python if else hackerrank solutions
python if-else hackerrank solution github
python if else program questions
python if-else hackerrank python solutions hindi
python if-else hackerrank solution in python