title: Python - starting the game again
body: <p>I'm trying to help my son with simple python project. We don't have much of experience so please try to explain simple.
  We wrote few questions and once the questions end then if the user would like to play again then it will take him to the beginning...
  Can some please help? We are trying to get:
  1. If the user will type "yes" then it will take him to the start and the program will start again..
  2. If he will type "no" it will give a message :"Thank you...." and if possible will exit/close the screen...</p>
  
  <p>Here is the code:</p>
  
  <pre><code># Starting of the code
  import time
  import random
  def displayIntro():
  print('Hello! My name is John. What is your name?')
  myname = input()
  print ('Well, ' +myname + ' This program is all about skin cancer.')
  
  # some question below
  
  #End of the code
  playagain = 'yes'
  while playagain == 'yes': 
      displayIntro()
      print('Do you want to play again? (yes or no)')
      playAgain = input()
  </code></pre>
  
  <p>Thank you.</p>