Article Outline
Python example 'python-example-73'
python-example-73
Python example: python-example-73
#!/usr/bin/python
# -*- coding: UTF-8 -*-
if __name__ == '__main__':
ptr = []
for i in range(5):
num = int(raw_input('please input a number:\n'))
ptr.append(num)
print(ptr)
ptr.reverse()
print(ptr)
Useful links
- Learn Python: https://pythonbasics.org/
- More Python: https://pythonprogramminglanguage.com