Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to use the slicing operator in Python?

Answer Posted / glibwaresoftsolutions

Slicing is a method for gaining access to particular segments of sequences, including strings, tuples, and lists. The syntax used for slicing is []. You can optionally omit this step. All sequence elements from the start (inclusive) to the end-1 start:end:step element are returned by the [start:end] function. It indicates that there is a negative i at the end of the start or end element. The number of components that need to be skipped or the jump is represented by the step.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you insert a line break in python?

866


How to get the ascii value in python?

1029


What is a numpy in python?

860


What is self in python constructor?

863


Describe how to send email from a python script?

820


Difference between __str__ and __repr__ in python?

1039


In python, are there any databases to DB packages?

931


What is the necessity to use pass statement in python program?

951


What is the usage of enumerate () function in python?

923


How would you work with numbers other than those in the decimal number system?

856


How can you identify the data type of any variable in python?

856


How will you convert a string to all lowercase?

824


what exactly are iterator, iterable, and iteration?

913


What are the basic datatypes in python?

1071


Is python numpy better than lists?

981