Python Forum
Best Practice For String Quotations ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best Practice For String Quotations ?
#10
I use single quotes because I don't have to press shift key in addition. If I don't have single quotes in the string. Sometimes I use double quotes just because in my language it's natural. When I have both, single and double quotes in the string I am using triple quotes. Escaping makes strings ugly for me.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
Best Practice For String Quotations ? - by Zork_3 - Aug-31-2017, 04:12 PM
RE: Best Practice For String Quotations ? - by wavic - Sep-01-2017, 07:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best programming practice for imports Curbie 8 1,629 Oct-16-2024, 02:20 AM
Last Post: Curbie
  how can I organise my code : best practice? pythonbum 0 577 May-24-2024, 03:17 PM
Last Post: pythonbum
  Threading best practice EvanS1 2 3,064 Apr-21-2020, 10:11 PM
Last Post: EvanS1
  Help with string practice Hermann_Fegelein 2 3,360 Aug-15-2018, 04:56 PM
Last Post: Hermann_Fegelein

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020