Docstrings

Lab Python Beginner 10 points

Write celsius_to_f(c) with a docstring Convert Celsius to Fahrenheit. Read a temperature, print the converted value (1 decimal), then print the function's docstring using __doc__.

Input

One number.

Output

Two lines.

Example

Input

100

Output

212.0
Convert Celsius to Fahrenheit.
Sample input available Sample output available
Editor
Python

Hints

A docstring is a string literal on the first line of the function body.

Solution explanation

Docstrings document what a function does; tools and help() read them.

Show solution
def celsius_to_f(c):
    """Convert Celsius to Fahrenheit."""
    return c * 9 / 5 + 32


print(f"{celsius_to_f(float(input())):.1f}")
print(celsius_to_f.__doc__)
Output
Answer
HOME LEARN COMMUNITY DASHBOARD