python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
x=[1, 2, 3, 4, 5, 6] x.append(7) print('append 7, x) x.extend([9, 13, 15, 17]) print('extend, x) x.insert(3, 10) print('insert', x) x.remove(9) print('remove 9\n ', x) x.pop(5) print('pop \n',x) x.clear() print('remove \n',x) y=[4, 1, 25, 9, 36, 16, 1] print(y.index(16)) print(y.count(1)) y.sort() print(y) y.reverse() print(y) print(y.copy())
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up