Python Forum
Quick Lists Question (Count Occurences)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick Lists Question (Count Occurences)
#5
I still am not getting where I need to be. The console is supposed to spit out how many times each integer I input occurs. I've altered my code a bit since last post. I'm working with what I had before now and this:

lst = []
print("Enter 9 numbers: ")
for i in range(9):
lst.append(eval(input()))
print(lst.count())
Reply


Messages In This Thread
Quick Lists Question (Count Occurences) - by EwH006 - Nov-16-2016, 12:06 AM
RE: Quick Lists Question (Count Occurences) - by EwH006 - Nov-16-2016, 01:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Count occurences in a string and add to a list using loops Leyo 4 1,729 Mar-11-2022, 03:52 PM
Last Post: Leyo
  Calculator I need quick help Malin3k 3 2,100 Feb-13-2021, 02:10 AM
Last Post: BashBedlam
  Count Letters in a Sentence (without using the Count Function) bhill 3 5,253 Jun-19-2018, 02:52 AM
Last Post: bhill
  regex, counting occurences yanhto 4 3,415 May-06-2018, 10:20 PM
Last Post: killerrex

Forum Jump:

User Panel Messages

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