Python Tutorial for Beginners 6 – Strings

///Python Tutorial for Beginners 6 – Strings

Python Tutorial for Beginners 6 – Strings

FavoriteLoadingAdd to favorites

In this Video I am going to show how to use String literals in Python. In python String literals can be enclosed in matching single quotes (‘) or double quotes (“). A Python string is a sequence of characters. A string literal uses quotes ‘Hello’ or “Hello”. Single- and Double-Quoted strings are the same. To “concatenate” strings,
use + symbol. e.g. print(“Hello”+”World”) . When a string contains numbers, it is still a string. We can convert numbers in a string into a number using int().
In Addition I am also going to show how to use comments in Python i.e. How To Write Comments in Python 3

★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ ⚫️
Java Programming Course ➡️ ⚫️
Bash Shell Scripting Course ➡️ ⚫️
Linux Command Line Tutorials ➡️ ⚫️
C Programming Course ➡️ ⚫️
C++ Programming Course ➡️ ⚫️
PHP Programming Course ➡️ ⚫️
Android Development Course ➡️ ⚫️
C# Programming Course ➡️ ⚫️
JavaFx Programming Course ➡️ ⚫️
NodeJs Programming Course ➡️ ⚫️
Jenkins Course For Developers and DevOps ➡️ ⚫️
Scala Programming Tutorial Course ➡️ ⚫️
Bootstrap Responsive Web Design Tutorial ➡️ ⚫️
MongoDB Tutorial Course ➡️ ⚫️
QT C++ GUI Tutorial For Beginners ➡️

★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare –
Data Science – |
Machine Learning – |
Artificial Intelligence – |
MERN Stack E-Degree Program – |
DevOps E-degree – |
Data Analytics with R – |
AWS Certification Training – |
Projects in Java – |
Machine Learning With TensorFlow – |
Angular 8 – Complete Essential Guide –
Kotlin Android Development Masterclass –
Learn iOS Programming Building Advance Projects –

★★★ Follow ★★★
My Website –

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
python 3 unicode strings
python 3 compare strings
python 3 join strings
python 3 raw strings
python 3 bytes to string
python 3 string formatting
python 3 int to string
concatenate strings python

source

By |2019-12-26T00:46:21+00:00December 26th, 2019|Python Video Tutorials|21 Comments

21 Comments

  1. ProgrammingKnowledge December 26, 2019 at 12:46 am - Reply

    I have created the New Course on Python – Please Chick to View https://www.youtube.com/playlist?list=PLS1QulWo1RIYt4e0WnBp-ZjCNq8X0FX0J

  2. Hargobind Singh December 26, 2019 at 12:46 am - Reply

    why did the triple come as riple when single / was used

  3. Soumyadeep Barik December 26, 2019 at 12:46 am - Reply

    It seems to be 22 in length how can it be 34 in string a please explain quickly

  4. Devraj Kanti December 26, 2019 at 12:46 am - Reply

    I need to print the statement – He said – "I'am not coming today" but when it is enclosed in three double quotes as below –

    print("""He said – "I'am not coming today"""")

    error is thrown – SyntaxError: EOL while scanning string literal

    While if use

    print("""He said – "I'am not coming today"""")

    it is printed.

    Please help me to understand what is wrong in first print.

  5. bhavna sagta December 26, 2019 at 12:46 am - Reply

    Hi, any idea why below code doesn't executed. I'am using coderpad for testing.

    ran 6 lines of Python 3 (finished in 1.17s):

    File "/home/coderpad/solution.py", line 3

    c=""Hello""

    ^

    SyntaxError: invalid syntax

  6. pinki lakshakar December 26, 2019 at 12:46 am - Reply

    sir in my program after run time error come in my program plz help me

  7. Cory Cook December 26, 2019 at 12:46 am - Reply

    print (' I'm a freied knot! O'l boy!')
    Exit
    I could not prevent this. I'll show myself out.

  8. Saranya Saranya December 26, 2019 at 12:46 am - Reply

    Hi sir.. in this video, when u use back slash in 6.49 mins, why its showing that "' i am a riple quoted string '"……. where is t in triple? Plz explain

  9. Tirumalareddy Ganesh Reddy December 26, 2019 at 12:46 am - Reply

    Sir its not showing space between them

  10. Saibal Chakraborty December 26, 2019 at 12:46 am - Reply

    Rais your speed

  11. jackie chan December 26, 2019 at 12:46 am - Reply

    thanks alot but the voice is became low after the first video

  12. R Siva December 26, 2019 at 12:46 am - Reply

    Here why you are using the print function .. and without print also it will print right and what is the difference b/w these two (LEN(A))____This will also print same answer

  13. Mukul Soni December 26, 2019 at 12:46 am - Reply

    how to write
    my name is "Apple " ?
    It can be done as 'My name is "Apple" ' ;; but how to do it with only double inverted commas?

  14. Sandipan sarkar December 26, 2019 at 12:46 am - Reply

    you can also print a string and an int value in a single line with out using str() function . like this
    a="Hello"
    b=5
    print(a,b)

  15. RAMESH RK December 26, 2019 at 12:46 am - Reply

    nice teaching …..

  16. rahul aggarwal December 26, 2019 at 12:46 am - Reply

    and where the errors will be shown if i write and save the code in that .py file ?

  17. Milan Gerloff December 26, 2019 at 12:46 am - Reply

    very straight forward and easy to follow .

  18. Soumya Modak December 26, 2019 at 12:46 am - Reply

    How to print hello 10 times in different lines??

  19. Abhishek Bisht December 26, 2019 at 12:46 am - Reply

    Please make a video about different languages,where and in which field the different languages can be used?(like for Android development which and all languages should we learn same as web development,image processing,data science)

  20. sudheer s December 26, 2019 at 12:46 am - Reply

    But Why 3 queotes here if everything was same?

  21. chitra lalawat December 26, 2019 at 12:46 am - Reply

    a is a container in your language to store value 5.. and since we haven't defined any data type previous to it .. it should be consider as a string… so, 'hello'+5 shouldn't be an error… but y it is showing error.. can u please explain?

Leave A Comment

*