YTread Logo
YTread Logo

#3 Python Tutorial for Beginners | Getting Started with Python

Jun 07, 2021
or you can also use one more character here, so if you want to concatenate two strings, we have two strings here, we have Naveen and we have Naveen, so when I say enter, because you can see we have Naveen and that means we are combining it, what I want to print on the domain three or ten times? In that case, you know that you can also play with numbers. You can say ten in single quotes, you can say Naveen and center, you can watch record Naveen ten times, yeah, but his phone actually you know you can, you can play with it, you can do an experiment that's amazing, what if I want print this?
3 python tutorial for beginners getting started with python
Tell me, okay UK, try to guess if it will work or not, just pause the video. I guess let me know in the comments section if it will work or not and then we can continue. What I will do is add something that would say C slash and colon I have a directive like slash Docs Naveen so pause the video think about it and let's see what result you are giving let's try to answer in terms oh this is strange we didn't expect that would print, say: Doc Naveen forward slash, but unfortunately it is giving a new line and then I wind up what is wrong now /n a special meaning in Python, what is that special meaning and what is the meaning? means new lines a slash and it means new line and that's what's happening here it prints it's printing C colon slash and then it gets to a new line because of the slash and it says oven okay what What I do is I want to print it.
3 python tutorial for beginners getting started with python

More Interesting Facts About,

3 python tutorial for beginners getting started with python...

I want to print it as is, how do I do it? It's very simple, you just need to cancel the special meaning of that thing, then you want to print this string as is, which is also for this raw string, so I want to print. this one has a lower string, in that case just specify our before the thing and it will say C colon, slash, dogs, slash, Naveen, so we're printing this as is, so when you say art it means raw string, don't try to convert. that's what you're telling Python, hey, don't try to just cut, don't try to turn that slash into a new special character and center it, it works, yeah, so everything looks good now, so I hope you enjoyed it. what we're doing here, I'm playing with these things and this in this video we've just talked about how we can use certain operators and then playing with printf in the next video we're going to talk about how to use variables now if so. enjoying this series, let me know in the comments section what you think and if you have any questions you can ask them too.
3 python tutorial for beginners getting started with python
By the way, I read your comments and if so, I can answer that in the next video and if you like it. my videos so click the like button and subscribe to the channel to watch more videos. Thank you all very much, goodbye.
3 python tutorial for beginners getting started with python

If you have any copyright issue, please Contact