Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ReverseArray.py
#python 3.5.2 #Linear Search from array import * arr=array('i',[1,2,3,4]) print("original",arr) i=0 j=len(arr)-1 while i<j: arr[i],arr[j]=arr[j],arr[i] i+=1 j-=1 print("reverse",arr)
run
|
edit
|
history
|
help
0
Python_Hello_World
playing around with python
Program of cube
Square numbers
Short python input
Python, filter emails using finditer()
line 4
vocabulary
test
PyLSV