+ 1

How to do the built in input function to not show in your output (python)

23rd Jun 2020, 3:50 PM
joey
joey - avatar
6 odpowiedzi
+ 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 > ')
23rd Jun 2020, 4:58 PM
Slick
Slick - avatar
+ 1
username = input("Whats Your Name? ") print ("hello "+ username)
23rd Jun 2020, 5:05 PM
JaScript
JaScript - avatar
+ 1
Thank you
23rd Jun 2020, 5:30 PM
joey
joey - avatar
0
To not show what in your output?
23rd Jun 2020, 4:26 PM
Slick
Slick - avatar
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
23rd Jun 2020, 4:34 PM
joey
joey - avatar