Python Beginner Voting Program Project

Asked 2 years ago, Updated 2 years ago, 85 views

I tried to get the number of votes, use the repetitive sentence, use the number of votes, put the symbols i, put the letters on the list, show the voting list, ask what your choice is, and show you what's wrong, but I keep getting errors. Please use the code below to know what I'm trying to do and tell me how to do itㅜ<

i=1

j=0

list1=[]

a=int (input ("voters:"))

for i in (1,a):

  b=int (input ("symbol", i", number:")

 list1.append(b)

 i=i+1

print("=============Vote List===========")

for j in list1:

 for k in (1,a):

c=int (input("symbol",k",number:",j))

 k=k=1

 j=j+1

print("==================================")

d=int (input ("Your choice is? (numeric):")

python loops function list

2022-09-22 11:10

1 Answers

>>> for i in (1,4):
    print(i)

1
4
>>> for i in range(1,4):
    print(i)

1
2
3

If you catch two things first, you can solve the rest step by step.


2022-09-22 11:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.