Python Forum
How to use list to solve things
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use list to solve things
#5
So something like
Start at the beginning of list, note the first word, call it active.
Move to the next word. If the same, increment a counter, otherwise call that count final and make this word the new active.
When you reach the end of the list, print out the list of words and counts.

Does that sound like what you want to do? If so, take each step and program that step. Once that is working move to the next step.
Reply


Messages In This Thread
How to use list to solve things - by hamalainenjuho - Nov-13-2021, 07:15 PM
RE: How to use list to solve things - by Yoriz - Nov-13-2021, 07:28 PM
RE: How to use list to solve things - by jefsummers - Nov-14-2021, 12:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  So many things wrong, it runs but not like its supposed to kasherwood 6 2,803 Sep-26-2020, 04:57 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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