Why didn't my teacher just say that!? I'm honestly learning more by watching video's like this one on youtube, made by enthusiasts like yourself (rip my college tuition) Thank you for well expained tour, sir!
Hi I was wondering how to make space for example let’s say I have got two or three name Eric John Albert & I want them to be Eric John Albert One line space between each name is it if so, this means it is a line breaker as in html
Yes, you can use to do that. It is similar in functionality to line breaker in HTML because you can insert multiple of them and it will continue to add new lines. For example, to achieve that spacing you are asking about, you can put two next to each other like this: print("Eric
John
Albert") And that will output with additional line spaces as you showed.
One of the ways that this can happen is if you are using a double slash "\ " instead of a single slash " ". That will basically "escape the escape" character and print the backslash as a string instead. Another way this can happen is if the letter "r" is typed within the argument for the print function call such as: print(r"Hello World") Then the output will be the raw string ----> Hello World Could one of these be causing your issue?
To be honest, I had wondered before making it if it was too basic to even need a video on. But then I realized that things can only become basic info after you have learned it first. So I am glad to hear the feedback that it was helpful!
Are you referring to printing a literal " " instead of as the video showed as an escape character? In that situation, you could use a double slash such as "\ " instead of a single slash as " ". That will print a literal backslash character "\" as a string followed by the "n" character. Another way to print " " literally in Python is if the letter "r" is typed in the argument for the print function call in front of the string. For example, print(r"Hello World"), will output the raw string as "Hello World".
Why didn't my teacher just say that!?
I'm honestly learning more by watching video's like this one on youtube, made by enthusiasts like yourself (rip my college tuition)
Thank you for well expained tour, sir!
I appreciate it 😃. Lol, I've been there where professors can make things harder than they need to be. Glad this helped.
I'm also learning from a college class and found this channel's videos. Saved and subscribed. ❤
Very good. You deserve a lot more subs!
simple, to the point and well said! you truly deserve more recognition!
nice.
good.
wow.
amazing
Well said.
Thank you....your video helped me ❤❤
nice.
good
Hi I was wondering how to make space for example let’s say I have got two or three name
Eric
John
Albert
&
I want them to be
Eric
John
Albert
One line space between each name is it
if so, this means it is a line breaker as in html
Yes, you can use
to do that. It is similar in functionality to line breaker in HTML because you can insert multiple of them and it will continue to add new lines. For example, to achieve that spacing you are asking about, you can put two
next to each other like this:
print("Eric
John
Albert")
And that will output with additional line spaces as you showed.
Hey man, when trying to use escape characters in vscode they're just being outputted as string, how do I fix that ?
One of the ways that this can happen is if you are using a double slash "\
" instead of a single slash "
". That will basically "escape the escape" character and print the backslash as a string instead.
Another way this can happen is if the letter "r" is typed within the argument for the print function call such as:
print(r"Hello
World")
Then the output will be the raw string ----> Hello
World
Could one of these be causing your issue?
Thanks man
do a CRLF vid with a CSV file?
Thanks for the suggestion. Here is the video: th-cam.com/video/W149ifvprTA/w-d-xo.html
Thank you,very basic info.so basic that no one talks about it😢
To be honest, I had wondered before making it if it was too basic to even need a video on. But then I realized that things can only become basic info after you have learned it first. So I am glad to hear the feedback that it was helpful!
hi how can i print /n in python
Are you referring to printing a literal "
" instead of as the video showed as an escape character? In that situation, you could use a double slash such as "\
" instead of a single slash as "
". That will print a literal backslash character "\" as a string followed by the "n" character. Another way to print "
" literally in Python is if the letter "r" is typed in the argument for the print function call in front of the string. For example, print(r"Hello
World"), will output the raw string as "Hello
World".
@@Electriangle thanks
Thank You SOOOO MUCH🫡 God Bless
nice./ngood./nwow./namazing
Clever 😄. Thanks!