We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3212750 commit 99a73acCopy full SHA for 99a73ac
conversions/fahrenheit_to_celsius.py
@@ -13,7 +13,7 @@ def fahrenheit_to_celsius(temperature: float) -> float:
13
return 5 * (temperature - 32) / 9
14
15
16
-if __name__ == '__main__':
+if __name__ == "__main__":
17
from doctest import testmod
18
19
testmod()
maths/median.py
@@ -22,7 +22,8 @@ def median(numbers):
22
numbers = sorted(numbers)
23
mid_index = len(numbers) // 2
24
return (
25
- (numbers[mid_index] + numbers[mid_index - 1]) / 2 if mid_index % 2 == 0
+ (numbers[mid_index] + numbers[mid_index - 1]) / 2
26
+ if mid_index % 2 == 0
27
else numbers[mid_index]
28
)
29
0 commit comments