 <p>You can use <a href="https://docs.python.org/3.4/library/functions.html#input" rel="nofollow"><code>input</code></a> to accept a string from the user. As you'll have two co-ordinates to punch in, perhaps call this twice. Once you get the strings, cast the locations to integer via <code>int()</code>.</p> <p>If you want to generate random locations, you can use <a href="https://docs.python.org/3.4/library/random.html#random.randrange" rel="nofollow"><code>random.randrange()</code></a>. The syntax for <code>random.randrange()</code> is like so:</p> <pre><code>num = random.randrange(start, stop) #OR num = random.randrange(start, stop, step) </code></pre> <p>This will randomly generate a number from <code>start</code> to <code>stop</code> excluding <code>stop</code> itself. This is pretty much the same as with <code>range()</code>. The first method assumes a step size of 1, while the second method you can specify an optional third parameter which specifies the step size of your random integer generation. For example, if <code>start = 2</code>, <code>stop = 12</code> and <code>step = 2</code>, this would randomly generate a integer from the set of <code>[2, 4, 6, 8, 10]</code>.</p>