Oi Pessoal, gostaria perguntar se alguem sabe como eu poderia fazer para definir um valor X(usuario digita) para o meu array sem que esse numero seja considerando como primeiroitem (sccore[0]) do meu arra. No exemplo de saida defini um array com 6 posicoes e na ultima linha eu imprimi meu array. O numero “6” aparace na primeira posicao.
Vou deixar o meu codigo:
numberStudents = int(input('Enter a number of student: '))
<a class="hashtag" href="https://www.guj.com.br/tags/numero">#numero</a> de estudantes (que sera definido como tamanho do meu array)
score = [numberStudents]
bestScore = score[0]
for i in range(numberStudents): # Crio um array com o tamannho definido pela variavel (numberStudents)
scoreStudent = int(input(f’Enter score of student {i+1}: ‘))
score.append(scoreStudent)
if score[i] > bestScore:
bestScore = score[i]
print(f’Best Score is: {bestScore}’)
for i in range(1,7):
if score[i] >= bestScore-10:
grade = ‘A’
elif score[i] >= bestScore -20:
grade = ‘B’
elif score[i] >= bestScore - 30:
grade = ‘C’
elif score[i] >= bestScore - 40:
grade = ‘D’
else:
grade = ‘F’
print(F’Student {i} is {score[i]} and grade is {grade}’)
print(score)
SAIDA:
Enter a number of student: 6
Enter score of student 1: 40
Enter score of student 2: 80
Enter score of student 3: 60
Enter score of student 4: 50
Enter score of student 5: 25
Enter score of student 6: 38
Best Score is: 80
Student 1 is 40 and grade is D
Student 2 is 80 and grade is A
Student 3 is 60 and grade is B
Student 4 is 50 and grade is C
Student 5 is 25 and grade is F
Student 6 is 38 and grade is F
[6, 40, 80, 60, 50, 25, 38]
Obrigada! 
Process finished with exit code 0
