add pythons exercises
This commit is contained in:
parent
ae198bff57
commit
00ed00412c
@ -3,12 +3,10 @@
|
|||||||
|
|
||||||
"""Rozwiązanie zadania 104."""
|
"""Rozwiązanie zadania 104."""
|
||||||
|
|
||||||
def sum_from_one_to_n(number):
|
def fahrenheit(number):
|
||||||
"""Placeholder"""
|
"""Placeholder"""
|
||||||
if number < 1:
|
if number < -273.15:
|
||||||
return 0
|
return -459.67
|
||||||
ret = 0
|
number = number-273.15
|
||||||
for ile in range(1, number + 1):
|
return number
|
||||||
ret += ile * ile
|
|
||||||
return ret
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user