Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Two types of single quotes
#3
The one on the tilde key (by escape) is an accent not a quote. See if this helps you distinguish the two.
print (ord ("'"), ord ("`"))
The single quote works the same as the double quote in python. One handy way to use both is:

print ('He yelled "BASHBEDLAM!"')
Reply


Messages In This Thread
Two types of single quotes - by Led_Zeppelin - Mar-15-2021, 07:24 PM
RE: Two types of single quotes - by buran - Mar-15-2021, 07:55 PM
RE: Two types of single quotes - by BashBedlam - Mar-15-2021, 07:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help on how to include single quotes on data of variable string hani_hms 5 2,101 Jan-10-2023, 11:26 AM
Last Post: codinglearner
  Remove single and double quotes from a csv file in 3 to 4 column shantanu97 0 7,018 Mar-31-2021, 10:52 AM
Last Post: shantanu97
  Quotes vs. no quotes around numbers Mark17 6 3,170 Aug-06-2020, 04:13 AM
Last Post: t4keheart
  Can I delete single quotes in string matrix display sylas 2 3,522 Jul-22-2017, 10:18 AM
Last Post: sylas
  Double Quotes will not go away, must be missing something smiths87 3 5,124 May-03-2017, 11:45 PM
Last Post: smiths87
  Help with strange syntax - two single quotes after variable mvrk 1 3,375 Jan-25-2017, 10:56 AM
Last Post: buran

Forum Jump:

User Panel Messages

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