I'm doing an exercise whose code is as follows:
import random
n1 = str(input ('Primeiro aluno:'))
n2 = str(input ('Segundo aluno:'))
n3 = str(input ('Terceiro aluno:'))
n4 = str(input ('Quarto aluno:'))
lista = [n1,n2,n3,n4]
escolhido = random.choice(Lista)
print('O aluno escolhido foi: {}'.format(escolhido))
In pycharm it runs normally but in vs code it gives the following error:
File "challenge019.py", line 2, in
n1 = str (input ('First student:')) File "", line 1, in NameError: name 'oi' is not defined