Can I copy/paste code all at once?
<p>I tried to copy and paste the code from the link below.  </p>

<p><a href="http://xlsxwriter.readthedocs.io/example_merge1.html" rel="nofollow noreferrer">http://xlsxwriter.readthedocs.io/example_merge1.html</a></p>

<p>Here is the code in its entirety.</p>

<pre><code>import xlsxwriter

# Create an new Excel file and add a worksheet.
workbook = xlsxwriter.Workbook('C:/Users/Excel/Desktop/test.xlsx')
worksheet = workbook.add_worksheet()

# Increase the cell size of the merged cells to highlight the formatting.
worksheet.set_column('B:D', 12)
worksheet.set_row(3, 30)
worksheet.set_row(6, 30)
worksheet.set_row(7, 30)


# Create a format to use in the merged range.
merge_format = workbook.add_format({
    'bold': 1,
    'border': 1,
    'align': 'center',
    'valign': 'vcenter',
    'fg_color': 'yellow'})


# Merge 3 cells.
worksheet.merge_range('B4:D4', 'Merged Range', merge_format)

# Merge 3 cells over two rows.
worksheet.merge_range('B7:D8', 'Merged Range', merge_format)


workbook.close()
</code></pre>

<p>When I copy/paste the script into Python 2.7.12 Shell, as a whole, nothing happens at all.  There is no error and nothing is done.  If I copy/paste each line, and run each one at a time, it works fine.</p>

<p>How can I setup my environment so I can copy/paste several lines of code and run everything all at once?</p>

<p>Thanks.</p>

<p>Here is an image from my Window Start Button.</p>

<p><a href="https://i.stack.imgur.com/YMeqz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YMeqz.jpg" alt="enter image description here"></a></p>

<p>I am using Windows 7.</p>