Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Excel - Python
#5
As to your latest question, that is simple

mylist = ['this_is_a_sentence 500', 'the_color_purple 650', 'this_is_also_a_sentence 750']

for seq in mylist:
    if 'nte' in seq:
        print(seq)
        # now process this data somehow
Reply


Messages In This Thread
Excel - Python - by bckdw3tci6 - Jun-24-2023, 04:19 PM
RE: Excel - Python - by Pedroski55 - Jun-24-2023, 10:55 PM
RE: Excel - Python - by bckdw3tci6 - Jun-25-2023, 01:42 PM
RE: Excel - Python - by Pedroski55 - Jun-25-2023, 09:15 PM
RE: Excel - Python - by Pedroski55 - Jun-25-2023, 09:25 PM

Forum Jump:

User Panel Messages

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