There are a few problems with this question, as indicated in the comments, and I think that the core of the question (How do I print stuff on the same line?) is answered elsewhere.
The main problem you're having here though is that, as Patrick said, you're assigning the variables the output of the print
function, which doesn't return anything. It puts the values of the objects you pass it into the text stream file. If there's no file, it passes the value to sys.stdout
, so there's nothing to capture into your variable. You would need to do it in the format
a = "_ "
etc...
Then do
print(a,b,c,d...)
The documentation for the print function is here - it might be worth your while taking in a tutorial or some time with the python docs themselves, as it's one of the first things covered in the tutorials - printing, variables and functions.