Python Forum
How to create a long string by concatenating two lists
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create a long string by concatenating two lists
#11
They both evaluate to False, but how is that relevant here? As the output I provided shows, I'm skeptical that the snippet you provided works.
Reply
#12
It doesn't work for some reason. First, the first list has to be extended then passed to the list comprehension.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Isolate a word from a long string nicocorico 2 1,532 Feb-25-2022, 01:12 PM
Last Post: nicocorico
  Generate a string of words for multiple lists of words in txt files in order. AnicraftPlayz 2 2,805 Aug-11-2021, 03:45 PM
Last Post: jamesaarr
  Create Dict from multiple Lists with duplicate Keys rhat398 10 4,075 Jun-26-2021, 11:12 AM
Last Post: Larz60+
  How to create new line '/n' at each delimiter in a string? MikeAW2010 3 2,829 Dec-15-2020, 05:21 PM
Last Post: snippsat
  concatenating 2 items at a time in a python list K11 3 2,332 Oct-21-2020, 09:34 AM
Last Post: buran
  Split dict of lists into smaller dicts of lists. pcs3rd 3 2,372 Sep-19-2020, 09:12 AM
Last Post: ibreeden
  Create array from string steve87bg 4 3,176 Jul-13-2020, 07:55 PM
Last Post: jefsummers
  join string lists redminote4dd 9 3,489 Jun-11-2020, 07:04 PM
Last Post: Yoriz
  concatenating lists in a comprehension Skaperen 3 2,123 Jan-01-2020, 08:10 PM
Last Post: ichabod801
  Split a long string into other strings with no delimiters/characters krewlaz 4 2,781 Nov-15-2019, 02:48 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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