How to write a Python program to find the largest of 3 numbers

Hello readers in this article I will show you how to write a Python program to find the largest of 3 numbers.

n=int(input("Please enter three no."))
while (n!=0):
    rem=n%10
    q=n//10
    n=q
    if (rem>n ):
        print(rem)
        break

Output

Please enter three no. 231
3

As you can see with this program you will learn how to write a Python program to find the largest of 3 numbers.

Thank you.