+ 1

What's the difference?

What's the difference between these in Python: >>> Print ('Hello') >>> "Hello" >>> 'Hello'

31st Aug 2019, 1:09 PM
Asymptote
Asymptote - avatar
2 ответов
+ 1
No difference between >>>"Hello" and >>>'Hello'. But the difference in >>>print('Hello') and >>>'Hello' print('Hello') prints Hello without quotes. >>>'Hello' and >>>"Hello" prints Hello with single quotes: 'Hello'
31st Aug 2019, 1:16 PM
Seb TheS
Seb TheS - avatar
+ 1
Seb TheS, Thanks👍
31st Aug 2019, 1:17 PM
Asymptote
Asymptote - avatar