Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Italics
#1
I am pretty new to coding. I have had some luck with VBA. So python why not! I am reading Eric Matthews, Python Crash Course 2nd edition. I am working with string data type. I'd like to further one of his exercises. I want to be able to store the names of authors and their quotes. I'd like to italics the quote. I was able to use, python -m pip install docx. I did install it. I do not own Microsoft Word. I can't use the package. I was wondering about using Google Docs, but it is an API. I am working pretty hard to use python packages. Is there another free word processing program I could use to run my code and have the quote be italics?
Here is my code just to store the name of the author and the quote.

first_name = "Eric"
last_name = "Carl"
quote = "[i]My oh my, how the days have flown by since we have met[/i]."   
name_quote = (f"{first_name.title()} {last_name.title()} \n\t {quote}")
print(name_quote)
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