I got a problem in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I got a problem in python

I have a problem in python when I run code I want to make it in one line and I use sys.stdout.write & end =‘’ Put the problem that it show in left and I want to make it in the right Like: sys.stdout.write(“_”) (“_”, end =‘’) And my input(enter your guess) Then it output. _______ enter your guess I want to make it enter your guess _______ Note :it is code for hangman game

25th Dec 2019, 8:59 PM
Mariam Elmogy
Mariam Elmogy - avatar
2 Answers
+ 1
Can't you leave all printing for sys.stdout.write and leave input function empty?
25th Dec 2019, 9:28 PM
Seb TheS
Seb TheS - avatar
0
input(‘Enter your guess: ______’)
26th Dec 2019, 12:54 AM
Rora