Python Forum
how do i get rid of next lines in my list()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do i get rid of next lines in my list()
#3
Thanks man, that really helped. Now how would you write code to then combine all of the character into a normal sentence?

This is the character I want to combine.
Output:
['B', 'u', 't', '', 's', 'o', 'f', 't', '', 'w', 'h', 'a', 't', '', 'l', 'i', 'g', 'h', 't', '', 't', 'h', 'r', 'o', 'u', 'g', 'h', '', 'y', 'o', 'n', 'd', 'e', 'r', '', 'w', 'i', 'n', 'd', 'o', 'w', '', 'b', 'r', 'e', 'a', 'k', 's', '', 'I', 't', '', 'i', 's', '', 't', 'h', 'e', '', 'e', 'a', 's', 't', '', 'a', 'n', 'd', '', 'J', 'u', 'l', 'i', 'e', 't', '', 'i', 's', '', 't', 'h', 'e', '', 's', 'u', 'n', '', 'A', 'r', 'i', 's', 'e', '', 'f', 'a', 'i', 'r', '', 's', 'u', 'n', '', 'a', 'n', 'd', '', 'k', 'i', 'l', 'l', '', 't', 'h', 'e', '', 'e', 'n', 'v', 'i', 'o', 'u', 's', '', 'm', 'o', 'o', 'n', '', 'W', 'h', 'o', '', 'i', 's', '', 'a', 'l', 'r', 'e', 'a', 'd', 'y', '', 's', 'i', 'c', 'k', '', 'a', 'n', 'd', '', 'p', 'a', 'l', 'e', '', 'w', 'i', 't', 'h', '', 'g', 'r', 'i', 'e', 'f']
Reply


Messages In This Thread
RE: how do i get rid of next lines in my list() - by ironpotatoe58 - Mar-29-2020, 06:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Iterate 2 large text files across lines and replace lines in second file medatib531 13 6,204 Aug-10-2020, 11:01 PM
Last Post: medatib531
  25 blank lines in my sorted_fruits output list! raven61 7 4,429 Aug-09-2018, 11:30 PM
Last Post: raven61
  storing lines from stdin in a list bghosh 2 3,103 May-02-2018, 01:12 PM
Last Post: gruntfutuk
  How to list objects on separate lines? Intelligent_Agent0 3 4,226 Jan-10-2018, 05:35 AM
Last Post: Intelligent_Agent0
  printing a list of lines Skaperen 7 4,714 Jul-30-2017, 03:28 AM
Last Post: Skaperen
  Print list items on separate lines with additional text DBS 2 6,250 Jan-11-2017, 02:57 AM
Last Post: DBS

Forum Jump:

User Panel Messages

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