BuildlyBuildly
DashboardExercisesProfileHelp
Data Science/Module 2: Data Analytics/NumPy Arrays1/3
Exercise·7 min·10 XP

Celsius to Fahrenheit

Context. Convert a list of Celsius temperatures to Fahrenheit in one shot — no loops.

Your task. Write celsius_to_fahrenheit(celsius) that takes a list of Celsius numbers and returns a NumPy array of the matching Fahrenheit values. Formula: F = C * 9/5 + 32.

Example. [0, 100] → array([32., 212.]).

Notes. Use NumPy broadcasting — no for-loops. Empty input → empty array.

Next
Row Sums