Write a program to find and print the largest among three numbers
Topic: Write a program to find and print the largest among three numbers
Solution
num1 = 10 num2 = 12 num3 = 14 if (num1 >= num2) and (num1 >= num3): largest = num1 elif (num2 >= num1) and (num2 >= num3): largest = num2 else: largest = num3 print(f'largest:{largest}')
List all Python Programs