Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Italics
#4
If you are using windows the encoding is a little different.
You can read about it here.
The single quotes just my preference. The lessons I watched said it did not matter, they are treated the same. Just my opinion, the only advantage I could see is if you needed a single quote in the string eg:myval = "Isn't this a string" as apposed to myval = 'Isn\'t this a string'

This is for terminal. Will not work in IDE's

Not always supported you can try this
print(f'\033[3mThis is italic text\033[0m')
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply


Messages In This Thread
Italics - by Dasiey12 - May-31-2020, 07:53 PM
RE: Italics - by menator01 - May-31-2020, 08:51 PM
RE: Italics - by Dasiey12 - Jun-01-2020, 02:09 AM
RE: Italics - by menator01 - Jun-01-2020, 03:42 AM

Forum Jump:

User Panel Messages

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