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.

24th Feb 2018, 5:45 AM
Amit Tiwari
3 Antworten
+ 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 ' '
24th Feb 2018, 5:50 AM
777
777 - avatar
+ 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
24th Feb 2018, 6:26 AM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
- 1
Thakns a lot
24th Feb 2018, 6:27 AM
Amit Tiwari