I need assistance with the following Python 3 Exercise:
Write a function largestNum that finds the largest of three numbers. Examples Input: 12, 25, 52 Output: 52 Input: -2, 10, 0 Output: 10 Input: 7, 2, 7 Output: 7 Note: you must implement this method without using the max () function in Python. 868 55 GSG 13 14 # The function accepts following parameters: 1. INTEGER num1 15 # 16 # 2. INTEGER num2 17 # 3. INTEGER num3 18 # def largestNum (num1, num2, num3): # Write your code here name__ == '__main__': num1 = int(input().strip()) num2 = int(input().strip()) num3 = int(input().strip()) largestNum (num1, num2, num3) 19 20 21 22 23 vif 24 25 26 27 28 29 30 31
I need assistance with the following Python 3 Exercise:
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am