Home > OS >  Is there a way to use a single "print", with multiple statements, and get the result in wh
Is there a way to use a single "print", with multiple statements, and get the result in wh

Time:10-10

I want the result as you win you won the medal how can I get these sentences one below the other in a single print? print("You WIN!!" "you won the medal!!") this doesn't work

CodePudding user response:

print("you win","you won the medal",sep="\n")

is another way

CodePudding user response:

Use \n to separate lines:

print("You WIN!!\nyou won the medal!!")
  • Related