Python_and_Data_Analytics_NEC_Week5_Solved
1. Write a program named try_ that contains a function named max. The program accepts two integer values as arguments and returns the value that is the greater of the two. For example, if 7 and 12 are passed as arguments to the function, the function should return 12. Decide for yourself how to handle a situation where the same two integers are entered. 2. Write a program named try_ that contains a lambda expression that converts Fahrenheit to Celsius. Accept the Fahrenheit temperature and display the Celsius result using the lambda. The formula is: C = 5/9 x (F-32)
Document information
- Uploaded on
- April 15, 2023
- Number of pages
- 2
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers