python program to check given number is even or odd

Python program to check given number is even or odd

num=int(input("Enter a number to check even or odd ")) if(num%2==0): # checks for remainder is zero or not for even number it should be 0 ...
Python program to find largest and equal of two numbers

Python program to find largest and equal of two numbers

num1=int(input("Please enter first number: ")) num2=int(input("Please enter second number: ")) if(num1>num2): #check for num1 is largest and gives true when num1 is largest otherwise false ...
Python program to find largest of two numbers

Python program to find largest of two numbers

num1=int(input("Please enter first number: ")) num2=int(input("Please enter second number: ")) if(num1>num2): #check for num1 is largest and gives true when num1 is largest ...
python loop control statements

loop control statements (Break, Continue, Pass)

अभी तक हमने देखा कि हम python में loop का प्रयोग किस तरह से कर रहे थे लेकिन loop का use करते time कभी-कभी...
python-nested-loop

Nested loops

जब loop के अन्दर loop होता है वो हमारा nested loop कहलाता  है। जिसमें एक inner loop होता है जोकि outer loop की body...
python-for-loop

for loop

वैसे तो सभी loops का काम same ही है But different loops का काम करने का तरीका change हो जाता है जैसे कि अब...
Python-While-Loop

While loop

While loop सभी programming language में use होता है while loop में हम if की ही तरह condition लगाते है but यहाँ पर difference...
python-looping-statements

looping and iteration statements

loop या iteration statements का use हम एक ऐसी situation में करते हैं जब हमारे पास code का एक block है और उस code...
python-range-function

range() function

range() function का सबसे ज्यादा use जब होता  है जब हम for loop का use करते हैं। range() function हमेशा एक List return करता...
python nested if statement

nested if statement

Nested if statement में जब एक if block के अन्दर दूसरा if block लगाया जाता है उसे ही nested if कहते हैं। और अच्छे...

Stay connected

19,096FansLike
2,045FollowersFollow
14,700SubscribersSubscribe
- Advertisement -

Latest article

Python program to find largest of three numbers

Python program to find largest of three numbers

num1=int(input("Please enter first number: ")) num2=int(input("Please enter second number: ")) num3=int(input("Please enter third number: ")) if((num1>num2)and(num2>num3)): # use of logical and, which gives true only when...
Python program to check a number is positive negative or zero

Python program to check a number is positive negative or zero

num=int(input("Please enter a number to check Positive Negative or Zero ")) if(num>0): print("Given number is a positive number"); elif(num<0): print("Given number is...
python program to check given number is even or odd

Python program to check given number is even or odd

num=int(input("Enter a number to check even or odd ")) if(num%2==0): # checks for remainder is zero or not for even number it should be 0 ...