Every hardware device does not understand any upper level code. For example x = 10 in Python means x is a variable having value 10. But internally hardware doesn't understand 10 or x, rather it...

# Posts by Gagan

If you have three numbers and don't know exactly which one of these three is largest. Then use below Python Code for finding which of three numbers is highest. Python Code for Finding Highest...

In any programming language, for dealing with Data you need to check if some number variable is positive or negative.In this article, I'll discuss Python Code for Checking if Number is...

In general, a year is considered leap year if its divisible by 4 but if year is a century year(ending with two zeroes) then it need to be divisible by 400 to a Leap Year. For example - 2020 is a leap...

Any number is considered even if its divisible by 2, otherwise its considered Odd. Quite simple Mathematically logic, let's implement this logic as Python Code for Checking if Number is Odd or...

Tuples in Python are sequence of elements, but these are immutable meaning once created tuple remains unique throughout program and it's elements cannot be updated. But what if you need to swap some...