Article Outline
Python example 'python-example-20'
python-example-20
Python example: python-example-20
#!/usr/bin/python
# -*- coding: UTF-8 -*-
Sn = 100.0
Hn = Sn / 2
for n in range(2,11):
Sn += 2 * Hn
Hn /= 2
print('Total of road is %f' % Sn)
print('The tenth is %f meter' % Hn)
Useful links
- Learn Python: https://pythonbasics.org/
- More Python: https://pythonprogramminglanguage.com