0

How to make “enter your name” input disappear from output?

https://code.sololearn.com/cQ2Gf1k6nkD7/?ref=app

22nd Feb 2020, 2:03 AM
Daniel Dehaan
3 ответов
+ 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
22nd Feb 2020, 2:33 AM
Cmurio
Cmurio - avatar
+ 4
Here's something in one line... print(f"Hey there {input()}, welcome back.")
22nd Feb 2020, 3:00 AM
David Ashton
David Ashton - avatar
+ 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.
22nd Feb 2020, 2:40 AM
Cmurio
Cmurio - avatar