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):")
>>> 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.
© 2024 OneMinuteCode. All rights reserved.