Example & Tutorial understanding programming in easy ways.

How do you insert a new item in list at required index position in Python ?

We can do this with the help of the insert() function in Python 

like:

l=[1,2,3,4]

l.insert(2,18)

print(l)

output:

[1,2,18,3,4]

Read More →
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!