None
is nothing, is the lack of value. In case is printing this because the result of the function print()
always is None
because it is a function that only does an action and does not generate a valid result.
It is not a question of withdrawing the None
, has to fix the programming error. It doesn’t make much sense to put a print()
within a input()
.
Probably what you that is it:
opcao = input('Digite:\n1 - Acertei\n0 - Errei\n\n = ')
print(opcao)
Behold working in the ideone. And in the repl it.. Also put on the Github for future reference.
Study the functions before using it. They all have documentation of what you expect, what you do, and what works. For example: https://docs.python.org/3/tutorial/inputoutput.html, besides the links above.
You’re right, just take off the print,
– Ruben Borges Ramos