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

Why do lambda forms not have statements?

1004


Explain the use of ternary operator in python?

921


What type of a language is python? Interpreted or Compiled?

816


What is raw_input in python 3?

928


What is the statement that can be used in Python if a statement is required syntactically but the program requires no action?

907


What does the function zip() do?

843


How do I use strftime in python?

918


How do you reverse the string in python?

941


How to redirect stdout to a file in python?

892


What is a decorator in python?

864


How to install a package and import?

902


What does the keyword do?

843


Explain how can you generate random numbers in python?

872


What is the difference between methods & constructors?

948


How much do python programmers make?

817