Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lists
#3
You must be able to spell out a plan what you want to do in order to achieve desired result.

Function input is list of DNA sequences. This is not stated but I assume that these DNA sequences are strings. So your first task:

- how to iterate over list and get items out of it for processing

After you have solved it you have items (DNA sequences) and you need to process them. Processing involves keeping only those items which meet following criterias:

- length is exactly 72
- contain only A, C, G or T (either in lower or uppercase)

If you processed DNA sequences according to those criterias you must construct new list from them and return it.

There is additional condition that input can be lower, upper or mixedcase.

So - start from beginning and solve your problem step by step.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Lists - by Tink - Nov-27-2020, 03:48 PM
RE: Lists - by deanhystad - Nov-27-2020, 04:21 PM
RE: Lists - by perfringo - Nov-27-2020, 06:02 PM
RE: Lists - by Tink - Nov-28-2020, 01:47 PM
RE: Lists - by Larz60+ - Nov-27-2020, 06:07 PM
RE: Lists - by jefsummers - Nov-28-2020, 02:07 PM
RE: Lists - by Tink - Nov-28-2020, 02:39 PM
RE: Lists - by jefsummers - Nov-29-2020, 01:20 PM
RE: Lists - by Tink - Dec-01-2020, 02:12 PM
RE: Lists - by deanhystad - Dec-01-2020, 03:43 PM
RE: Lists - by jefsummers - Dec-02-2020, 12:02 AM
RE: Lists - by perfringo - Dec-02-2020, 01:52 PM

Forum Jump:

User Panel Messages

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