Down line, without printing what is written


#1

Hi, my friend, I have a question today, I am learning from several parts, and I have this hackxcrack book, but it teaches you python 2 and I have python 3, my question: how can I do to down without pressing enter, and so on do not make the first q print the command until I can write the others, I do not know if I express myself well, I attach a photo.
print


#2

you can put multiply lines of code on a single line if you separate them with a semi-colon:

print("hello"); print("world")

you can also simply make it a single print statement:

print("hello", variable1, "world", variable2)

if the output should be on two lines you can simple insert a new line character:

print("hello", variable1, "\nworld", variable2)

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.