CodeTestValidate

No installations needed! Write Python directly in your browser and get instant feedback with our smart validation system.

Challenge # 9

Celsius to Fahrenheit Converter

Objective

Convert a temperature value from Celsius to Fahrenheit using the standard formula.

Instructions

  • You are given a temperature in Celsius as a variable named celsius.

  • Convert the temperature to Fahrenheit using the formula: fahrenheit = (celsius * 9/5) + 32.

  • Print the resulting Fahrenheit value.

Constraints:
Do not use input(). • `celsius` will be a number (integer or float).
Exemple IO

Input: celsius = 0

Output: 32.0

Input: celsius = 100

Output: 212.0

Input: celsius = -40

Output: -40.0

Try It Online!

Output:

Validate Your Results

Get your code reviewed and validated to understand what you did right and where you can improve.

Previous challengeCount Vowels in a StringNext challengeReverse a String Without Built-in Functions
Loading...