Small help :) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Small help :)

hey guys am new here what is the difference between print('text') and print("text")

4th Mar 2018, 7:53 AM
Ahmed Ashraf
Ahmed Ashraf - avatar
3 Answers
+ 8
Welcome Ahmed! You can also use one inside the other: print("I 'think' so") -> I 'think' so print('I "think" so') -> I "think" so Best way to learn which does what is to experiment in the Code Playground. If you want help with a particular bit of code, you can save it in the Code Playground and share it so we can check it out (three dots joined by 2 lines in the corner -> share -> copy to clipboard -> paste in Q&A with your question) 🙂
4th Mar 2018, 9:43 AM
David Ashton
David Ashton - avatar
+ 6
there is no difference , you can use any of them in python.
4th Mar 2018, 8:05 AM
RZK 022
RZK 022 - avatar
+ 2
well old useful code... there is not actually difference in single & double quote...BUT MARK THAT THERES SOME HIGH NEED IN SOME CODES TO USE THEM.... its an string manipulation enlisting code..including ur doubt and other relevent info. also... //read comments to get the idea// https://code.sololearn.com/cnK7GbSZLglD/?ref=app
4th Mar 2018, 10:13 AM
sayan chandra
sayan chandra - avatar