title: Print month using the month and day
body: <p>I need to print month using the month and day. But I cannot seem to move the numbers after '1' to the next line using Python.</p>
  
  <pre><code># This program shows example of "November" as month and "Sunday"  as day.
  
  month = input("Enter the month('January', ...,'December'): ")
  day = input("Enter the start day ('Monday', ..., 'Sunday'): ")
  n = 1
  
  if month == "January" or month == "March" or month == "May" or month == "July" or month == "August" or month == "October" or month == "December":
          x = 31
  elif month == "February":
          x = 28
  else:
          x = 30
  
  print(month)
  print("Mo Tu We Th Fr Sa Su")
  if (day == "Sunday"):
          print("                  ", end='')
  for i in range (1, 7):
          for j in range (1, 8):
                  while n != x+1:
                          print('%2s' % n, end=' ')
                          n = n + 1
                          break
          print()
  </code></pre>
  
  <hr>
  
  <p>Output looks like this:</p>
  
  <pre><code>November
  Mo Tu We Th Fr Sa Su
                     1  2  3  4  5  6  7 
   8  9 10 11 12 13 14 
  15 16 17 18 19 20 21 
  22 23 24 25 26 27 28 
  29 30 
  </code></pre>