0
How to make “enter your name” input disappear from output?
3 Antworten
+ 6
Actually the Sololearn application puts it automatically, so it cannot be avoided if you run your code from the application. But if you run the same code from a compiler that does not happen and your output is what you expect
+ 4
Here's something in one line...
print(f"Hey there {input()}, welcome back.")
+ 3
There is a way that does not print anything, this is to not add the text to the input.
For example:
s= input ()
But doing that makes your code not specific and people won't know what data they can enter.