+ 1
How to do the built in input function to not show in your output (python)
6 ответов
+ 1
username = input('input: ')
The inside input needs to be a string.
As you have it, its a reference to the function so it prints that every time.
Anything thats inside the input call, ex:
input(>>this area<<)
Needs to be a string and then it will show up as a prompt to help users know what to enter when input is ready to be received. For instance, try:
username = input('Enter username > ')
+ 1
username = input("Whats Your Name? ")
print ("hello "+ username)
+ 1
Thank you
0
To not show what in your output?
0
My code
print ("Whats Your Name?")
username = (input(input))
print ("hello"+ username)
And the output is:
What's Your Name?
<built-in function input> hello joey
And I don't want the <built-in function input> on it