Python Forum
How can I unite some elems in the list?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I unite some elems in the list?
#1
I have a list.
list_ = ['did', 'is', 'not', 'come', 'will', 'kill', 'are', 'not']
I need to unite the elems that stand in front of 'not'. As a result, I need to get ->
list_ = ['did', 'is not', 'come', 'will', 'kill', 'are not']
I realy cannot figure how to do it out.
Reply


Messages In This Thread
How can I unite some elems in the list? - by Mike Ru - Jul-23-2017, 10:25 PM

Forum Jump:

User Panel Messages

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