I've got a while loop going, down below is part of the code. Screenshot of the full code
While checking over my work I noticed that it wasn't taking a new line when it prints out noRulesQuestion. Here is the output, from the screenshot the , shows that I've used to split the code instead of having a long line of text and the \n shows while also not taking a new line. It would work if I were to do example: noRulesQuestion = print( Screenshot of the output if I were to do this
noRulesQuestion = ("Each player rolls two dice. If the scores on the two dice are different, they are added. If they are the same then the score is increased be 50% (so two 3s would score a 9).", "\n"
"If one of the scores is greater than 12 the other player automatically wins.", "\n"
"If one of the scores is equal to twelve, that player wins.")
while True:
rulesQuestion = input("Do you know the rules? Type Yes or No: ")
if rulesQuestion == "No" and "no":
print(noRulesQuestion)
break
Is there a way to fix this? I'm quite new to coding and can't seem to get my head round it.
Edit: Updated the way I've formatted the question, thank you for the replies!