Category Archives: Python String

Python string data type is a sequence of characters which includes letters, numbers and symbols like punctuation marks etc. In simple words string is the data in text format. Strings data type also contains white spaces in it.

String slicing and indexing in python

What is slicing and indexing in python? To understand string slicing and indexing let’s first understand what is the definition of string? So basically the String is a sequence of characters which consists of letters, numbers, symbols and white spaces. Now since strings is a sequence. In python we have a provision, using which we can access and work with each and every part of string sequence. In technical words this accessing and working with the strings is known as string indexing and string slicing. String Indexing

Read More

String concatenation and replication in python

Introduction to strings in python: String is a sequence of characters which includes letters, numbers and symbols like punctuation marks etc. In simple words string is the data in text format. Strings data type also contains white spaces in it. Text data is one of the mostly used data type in our day to day life. Let’s see one example of strings, In python “Apple” is a string and sentence “I ate an apple” is also a string, not only that but “123789” is also a

Read More