0
When I used double queto in place o single , I got the same result.Why?
print('Hello') and print("Hello") prints the same output.
3 Réponses
+ 3
In Python or Ruby, it doesn't matter if you use " " instead of ' ' around strings and characters.
In other languages like C++, C, Java, etc. strings are enclosed within " " and characters within ' '
+ 1
Though both are permitted in Python, but it's more wise to use " " , because it supports to use apostrophe ( ' ) with a word.For example -print("John\'s book") >>> John's book
- 1
Thakns a lot