Python Forum
Text conversion to lowercase is not working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text conversion to lowercase is not working
#3
The str object has many useful string-methods: https://docs.python.org/3/library/stdtyp...ng-methods
One of them is title and capitalize.

text = "We always eat dinner together."
print(text.title())
Output:
We Always Eat Dinner Together.
With capitalize:
Output:
We always eat dinner together.
tester_V likes this post
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: Text conversion to lowercase is not working - by DeaD_EyE - Jan-13-2024, 03:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PDFminer outputs unreadable text during conversion from PDF to TXT Gromila131 6 1,528 Aug-06-2024, 08:20 AM
Last Post: Pedroski55
  Decryption not working if key has same symbol like text Paragoon2 0 797 Nov-11-2023, 09:32 PM
Last Post: Paragoon2
  while loop not working-I am using sublime text editor mma_python 4 2,136 Feb-05-2023, 06:26 PM
Last Post: deanhystad
  ANSI not working for change of text colors BliepMonster 10 7,199 Nov-10-2022, 09:28 AM
Last Post: BliepMonster
  How to properly scale text in postscript conversion to pdf? philipbergwerf 3 2,099 Nov-07-2022, 01:30 PM
Last Post: philipbergwerf
  python-docx- change lowercase to bold, italic Tmagpy 0 2,802 Jul-01-2022, 07:25 AM
Last Post: Tmagpy
  Replace changing string including uppercase character with lowercase character silfer 11 8,444 Mar-25-2019, 12:54 PM
Last Post: silfer
  Printing from a text file not working as I thought it would PythonZenon 10 8,058 Jun-02-2018, 09:19 PM
Last Post: snippsat
  Ending loop with string (capital & lowercase) MattWilk97 3 4,168 Oct-22-2017, 09:13 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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