News

In Python, a string is an ordered sequence of characters. Slicing is a way to retrieve a range of characters from this sequence. Think of slicing as specifying the 'from' and 'to' of the section ...
#fetching a substring by giving only starting index. It will fetch string from 3rd character till last print (string1 [3:]) ...