Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81350 / py2html / program.py
diff options
context:
space:
mode:
1 files changed, 10 insertions, 0 deletions
-rw-r--r--homework/81350/py2html/program.py10
diff --git a/homework/81350/py2html/program.py b/homework/81350/py2html/program.py
new file mode 100644
index 0000000..8343c02
--- /dev/null
+++ b/homework/81350/py2html/program.py
@@ -0,0 +1,10 @@
+num1 = 1.5
+num2 = 6.3
+
+sum = float(num1) + float(num2)
+
+print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
+
+table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 7678}
+for name, phone in table.items():
+ print(f'{name:10} ==> {phone:10d}')