Python is exponentially growing and is very much popular among data scientists and ml engineers. Python is an object oriented programming language and is a scripting language like php. It is used normally in web development as a server side language. And used in data science and machine intelligence for data analytics, preprocessing, model development etc. This article discusses python’s data type string.

A variable is a container that holds a value of a particular data type. In python, unlike Java the variables are not pre defined with its data type. It gets initialized with the value and its data type can later be known with type(). String being an alpha numeric data type can hold most of the data supplied to it.

Indexing in python allows access to characters at particular locations in the python string. The indexing begins from to the total length of the string -1. The indexing is always done with integers and no other data types instead. Any other data types can cause type error. Indexing makes string manipulation in python easier.

Printing strings with single and double quotes is not allowed as they are already defined in that similar fashion. Escape character backslash (/) is used followed by double quote or single quote.

Triple double quotes are used for declaring long multi-line strings to the variable. When this is preceded by f like in the following example, the variables can be concatenated at those spots mention with curly braces ( {} )

Loading full article...


Comment with a minimum of 10 words.
0 / 10
20 comments
I don't know much about what you're talking about, but I hope to learn more in your next posts, so good luck in everything.
I hope to learn a lot from what you have to offer a giant and a warm welcome for you, I look forward to
Hello greetings to you I welcome you on this platform I hope you are well and that you like being here
I hope you pass super bomb here and make many friends if you have any questions, the page has many posts to help you
I am new here but I welcome you I hope we can grow together and also learn about the beautiful yoors greetings
Hello, welcome to this great platform where you can share and publish your projects and share with us
Greetings I welcome you to this beautiful page where you will learn a lot and grow within it, I send you many kisses
Thank you for the publication I hope to soak up all the information you have to offer us a gigantic hug for you from mexico
I honestly don't have anything with it, but that's what I am. I think others would find it quite interesting.
Hello how are you, good afternoon. It's good that you joined this page. That's why I welcome you to yoors.
Lol. I know python, and it is nothing like this. The python I know swallows mice and rats whole. On the more serious side, I will have to bookmark this post, i may need to reread it later.
Perhaps quite interesting for the techies among the Yoors members and readers, but I don't have much interest in it. I do reading and writing and not programming.
I don't know much about these topics but we will surely learn more with the publications that you will surely offer us, thanks for sharing
Wishing for a very good evening from this side of the screen, you've read your blog a few times, but I still don't understand the content.
Excellent to have this type of content specialized in this area. It is certainly a great help for all of us to have the technical knowledge
Very fascinating article, in Yoors there will be people who want to specialize in this for them this will be a tool to use:)
Hello comrade. I hope you are well, I could see that you know a lot about programming topics, I could give a course about this for beginners
Interesting article as I do not have much experience with Python. However I do know more about coding in PHP.
I didn't know much about this program is something I think I saw, but seeing the information in the post gave me a clearer view Very complete post friend
When I was studying the programming language, I met this program and it is good, useful and good for doing different actions, well done.