Back to Lesson
Tuple Mapping
Restructure list objects into tuple components in single-liners.
Instructions
- Given.
celsius = [0, 10, 20] - Use a list comprehension to create a list of tuples formatted like.
(C, F) - Formula:
F = (C * 9/5) + 32 - Print the resultant sequence of paired coordinates.
main.py
main.py
Ctrl + Enter