There was an error while loading. Please reload this page.
1 parent cea6e7e commit 304a8e0Copy full SHA for 304a8e0
exercises/12-Map_a_list/solution.hide.py
@@ -0,0 +1,9 @@
1
+celsius_values = [-2, 34, 56, -10]
2
+
3
+def celsius_to_fahrenheit(celsius):
4
+ # The magic happens here
5
+ return (celsius * 9/5) + 32
6
7
+result = list(map(celsius_to_fahrenheit, celsius_values))
8
9
+print(result)
0 commit comments