If I run this code, it will give a list in string:
SothatIcannotdotheaverageofthenumberscorrectly(sinceitisinstring).WhatcanIdotogetthenumberprintedinfloat/int?
Doesthis"error" happen only with Python.3x? What would happen if I migrated to 2x? Would it print in float?
vet_aluno = [0]*2
for i in range(2):
vet_aluno[i] = input ("Digite o nome do(a) aluno(a): ")
vet_nota1 = [0]*2
for k in range(2):
vet_nota1[k] = input("Digite a nota de " + str(vet_aluno[0]) + ": ")
vet_nota2 = [0]*2
for a in range(2):
vet_nota2[a] = input("Digite a nota de " + str(vet_aluno[1]) + ": ")
#Calculando a média
media1 = media(vet_nota1[0],vet_nota1[1])
media2 = media(vet_nota2[0],vet_nota2[1])