Python tutorial #2 || Python IF-ELSE - HackerRank solution

Publié le: 28 mai 2021
sur la chaîne: LearnIT
6,239
81

Python tutorial #2 || Python IF-ELSE - HackerRank solution


In this video we are going to learn python if else statement, by solving HackerRank problem (Python IF-ELSE). With this we can learn basic if-else conditions in python.
This series helps you to get python certificate on hackerrank, which adds weight to your resume and helps to get placed in a good company


--- Contents of the video ----------

0:00 - Intro
0:04 - Problem statement
1:08 - Sample Testcases
1:37 - Solution

Python tutorial #1 || Say "Hello, World!" With Python - HackerRank solution :-    • Python tutorial #1 || Say "Hello, World!" ...  

Question :-

Given an integer, , 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, .
Output Format
Print Weird if the number is weird. Otherwise, print Not Weird.

Sample Input 0
3
Sample Output 0
Weird

#python
#hackerrank
#tutorial
#learnit
#pythonforbeginners
#hackerranksolutions
#certificate


Sur cette page du site, vous pouvez voir la vidéo en ligne Python tutorial #2 || Python IF-ELSE - HackerRank solution durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur LearnIT 28 mai 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 6,239 fois et il a aimé 81 téléspectateurs. Bon visionnage!