Simple program output
I’m a beginner to python I have a question regarding this program myName = (input())
print(myName) can anyone tell me why the output to this program is the name I entered is displayed twice I can’t figure out why
cvp last edited by cvp
@AM1965 the input function sends your input to the console, that's your first line, the print function also sends your name to the console, that's your second line.
Perhaps, could you try this
import console myName = console.input_alert('enter your name') print(myName)
@cvp oh ok thank you