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)
Información del documento
- Subido en
- 15 de abril de 2023
- Número de páginas
- 2
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas