Python Armstrong NumberPython Average of N NumbersPython Biggest of Three NumbersPython Common DivisorsPython Composite NumberPython Condense a NumberPython Even NumberPython Factorial of a NumberPython Fibonacci SeriesPython GCDPython LCMPython Leap YearPython Multiplication TablePython Number CombinationPython Odd NumberPython Palindrome NumberPython Perfect NumberPython Prime FactorPython Prime NumberPython Sum of DigitsPython Swapping Two Numbers

Python Array ProgramsPython Converter ProgramsPython Star Patterns ProgramPython Number Patterns ProgramPython Alphabet Patterns ProgramLast Updated:

In the following example, we will find which of the following numbers (40, 25, 7) is the biggest number.

Python Compiler

import math
a = 40;
b = 25;
c = 7;
print("The numbers are a = %d, b = %d, c = %d " % (a, b, c));
if(a > b and a > c):
print("a = %d is the biggest number" % a)
elif(b > c):
print("b = %d is the biggest number" % b)
else:
print("c = %d is the biggest number" % c)

In the following example, we will find the biggest of any given three numbers.

Python Compiler

a = int(input("Enter an integer for a = "));
b = int(input("Enter an integer for b = "));
c = int(input("Enter an integer for c = "));
if(a > b and a > c):
print("\na = %d is the biggest number" % a)
elif(b > c):
print("\nb = %d is the biggest number" % b)
else:
print("\nc = %d is the biggest number" % c)