Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81350 / py2html / program.py
blob: 8343c02c81537fdf041e15886d84e37a9de1ce20 (plain) (blame)
1
2
3
4
5
6
7
8
9
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}')