Sublime Forum

Sublime text 3 problem with console

#1

Hi

I am doing the exercise posted on YouTube in video 10, about INPUT.

print (“Program for the evaluation of students’ grades”)

student_note = input ()

def evaluation (note):
rating = “approved”
if note <5:
valoracion = “suspense”
return valuation

print (assessment (student_ grade))

I give save, I go to tools sublimeREPL - python - python RUN current file

It opens a new tab with the console, it loads me the message Program for the evaluation of students’ grades

but when I put a value, for example seven, the error message does not appear, nothing appears.

Can someone tell me how I can make the console run the program and get the error message that should appear?

I have done this same exercise on another computer and when I enter the numerical value, for example 7, the console executes the program without problems and gives me a pass or fail depending on the value I set. as long as it is a number and NOT a text, it seems strange to me since I have not yet put the int in the last line so that the input recognizes the integers.

print (evaluation (int (student_note)))

Can someone tell me why it recognizes the input without the int, if I enter text, example four, if it gives me an error message, whether or not I put the int.

Thank you very much for your help.

Raquel

0 Likes