0
How to convert Celsius in Fahrenheit ?
In the Python Core test i don't understand hove to write code with "def" and "conv". So I use principal code celsius = float(input()) fahrenheit =(celsius * 9/5)+32 print(fahrenheit)
3 odpowiedzi
+ 3
HINT: Temperature could be in the form of decimal numbers or float, not just integers.
+ 1
I get it, change to float(input())
+ 1
def is an abbreviation for define and used for defining any function in python
Example:-
def sum_fun(a,b):
return a+b
print (sum(4,6)) # Output = 10