+ 1

In python while using print command what difference ' ' and " " makes?

print(' ') and print(" ") difference?

30th Jul 2020, 3:02 PM
Sourav Majumdar
Sourav Majumdar - avatar
6 Answers
+ 3
While there's no difference in the ability to output, if you ever wanted your output to involve quotation marks (i.e. Donald said "hello") Then using both would make this possible. Having ' ' as your initial marks and using " " over the quoted part. These are recognised individually.
30th Jul 2020, 3:46 PM
Olivia
Olivia - avatar
+ 2
Your welcome 😃
30th Jul 2020, 3:48 PM
Olivia
Olivia - avatar
0
In python there is no different between those. #Zen of python Special cases aren't special enough to break the rules.
30th Jul 2020, 3:07 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
0
Thanks brother
30th Jul 2020, 3:09 PM
Sourav Majumdar
Sourav Majumdar - avatar
0
✌
30th Jul 2020, 3:11 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
0
Thank you😊
30th Jul 2020, 3:48 PM
Sourav Majumdar
Sourav Majumdar - avatar