Jump to content

User talk:Seanpm2001

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Welcome to my talkpage. As of editing this page, I have made no edits to Wikipedia with this account, I am making this page for future use. --Seanpm2001 (talk) 04:32, 18 January 2022 (UTC)Seanpm2001[reply]

Please remember to sign your messages on talk pages by typing four tildes (~~~~); this will automatically insert your username and the date.

Page edits:

https://wiki.riteme.site/w/index.php?title=Python_(programming_language)&oldid=1066745391

See all contributions: https://wiki.riteme.site/wiki/Special:Contributions/Seanpm2001

Python apostrophe

[edit]

I was wondering why my edit was reverted. Standard Python syntax uses " instead of ' or am I missing something?

Seanpm2001 (talk) 02:11, 20 January 2022 (UTC)seanpm2001[reply]

You're missing that Python allows using either.
What is "Standard Python"? Python's documentation prefers single quotes and so does the language itself, for example if you do print(repr("hello")) it'll print 'hello'. Akeosnhaoe (talk) 02:33, 20 January 2022 (UTC)[reply]
Thank you for the correction. I didn't know that part. I was taught to do it only with parentheses, and not apostrophes. I should probably go and fix my source code now. Seanpm2001 (talk) 02:40, 20 January 2022 (UTC)Seanpm2001[reply]
You don't need to fix any source code. If you have written programs using " then there's 0 benefit to spending your time to convert them. It doesn't matter. Akeosnhaoe (talk) 14:02, 20 January 2022 (UTC)[reply]