We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f71e37 commit f7b2380Copy full SHA for f7b2380
__pycache__/ex8.cpython-310.pyc
533 Bytes
ex8.py
@@ -0,0 +1,9 @@
1
+def f_to_c(temp):
2
+ Cel = (temp - 32) * 0.5556
3
+
4
+ return f"{temp} degrees Farenheit is {round(Cel)} degrees Celsius."
5
6
+def c_to_f(temp):
7
+ FarenH = (temp * 1.8) + 32
8
9
+ return f"{temp} degrees Celsius is {round(FarenH)} degrees Farenheit."
main.py
@@ -40,9 +40,15 @@
40
# ex7
41
from ex7 import calc_total
42
43
-array = [2.00, 4.00, 4.00]
44
-tax = "10%"
45
-result = calc_total(array, tax)
46
-print(result)
+# array = [2.00, 4.00, 4.00]
+# tax = "10%"
+# result = calc_total(array, tax)
+# print(result)
47
48
+# ex8
49
+from ex8 import f_to_c, c_to_f
50
51
+print(f_to_c(22))
52
+print(c_to_f(-6))
53
54
0 commit comments