Article Outline
Python example 'python-example-11'
python-example-11
Python example: python-example-11
#!/usr/bin/python
# -*- coding: UTF-8 -*-
f1 = 1
f2 = 1
for i in range(1,21):
print('%12d %12d' % (f1,f2))
if (i % 2) == 0:
print('')
f1 = f1 + f2
f2 = f1 + f2
Useful links
- Learn Python: https://pythonbasics.org/
- More Python: https://pythonprogramminglanguage.com