<div dir="ltr">Slightly hijacking this thread a bit, specifically Alan's reply, if anyone is averse to installing multiple versions of Python on their computers, you can always access a Python interpreter from a browser window.<div><br></div><div>Here are a collection I've put together. Most are Python 2, but the top pair also support Python 3:</div><div><ul><li><a href="http://ideone.com" target="_blank">http://ideone.com</a> (2.x & 3.x)<br></li><li><a href="http://colabv6.dan.co.jp/lleval.html" target="_blank">http://colabv6.dan.co.jp/lleval.html</a> (2.x & 3.x)<br></li><li><a href="http://doc.pyschools.com/console" target="_blank">http://doc.pyschools.com/console</a><br></li><li><a href="http://repl.it/languages/Python" target="_blank">http://repl.it/languages/Python</a><br></li><li><a href="http://skulpt.org" target="_blank">http://skulpt.org</a> (pure JS implementation; allows turtle)<br></li><li><a href="http://pythonwebconsole.thomnichols.org" target="_blank">http://pythonwebconsole.thomnichols.org</a><br></li><li><a href="http://shell.appspot.com" target="_blank">http://shell.appspot.com</a> (Google App Engine + libraries)<br></li><li><a href="http://codepad.org" target="_blank">http://codepad.org</a><br></li><li><a href="http://lotrepls.appspot.com" target="_blank">http://lotrepls.appspot.com</a><br></li><li><a href="http://datamech.com/devan/trypython/trypython.py" target="_blank">http://datamech.com/devan/trypython/trypython.py</a></li></ul></div><div>Cheers,</div><div>--Wesley</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 12, 2014 at 9:11 AM, Alan Gauld <span dir="ltr"><<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 12/11/14 11:08, Vaibhav Banait wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
I am new to python. I learnt (!) using  raw_input a day back. Attempt to<br>
use has resulted in error. I am not able to spot a problem in syntax. I<br>
am using python 3.4.2. Kindly help<br>
</blockquote>
<br></span>
Looks like you are reading a v2 book/tutorial but using v3.<br>
<br>
In v3 several key changes were made to Python including the renaming of raw_input() to input().<br>
<br>
The other big change was making print a function so you now *must* put parentheses around anything you want to print.<br>
<br>
ie<br>
<br>
print 'hello'  # Python v2<br>
<br>
becomes<br>
<br>
print('hello')   # python v3<br>
<br>
There are numerous other small changes so it would be better for you to either find a v3 tutorial (you could try mine! :-) or install Python v2.7 while you are learning.<span><font color="#888888"><br>
<br>
<br>
-- <br>
Alan G<br>
Author of the Learn to Program web site<br>
<a href="http://www.alan-g.me.uk/" target="_blank">http://www.alan-g.me.uk/</a><br>
<a href="http://www.flickr.com/photos/alangauldphotos" target="_blank">http://www.flickr.com/photos/<u></u>alangauldphotos</a></font></span><div><div><br>
<br>
______________________________<u></u>_________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://mail.python.org/mailman/listinfo/tutor" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>"A computer never does what you want... only what you tell it."<br>    <a href="http://google.com/+WesleyChun" target="_blank">+wesley chun</a> : wescpy at gmail : <a href="http://twitter.com/wescpy" target="_blank">@wescpy</a><br>    Python training & consulting : <a href="http://CyberwebConsulting.com" target="_blank">http://CyberwebConsulting.com</a><br>    "Core Python" books : <a href="http://CorePython.com" target="_blank">http://CorePython.com</a><br>    Python blog: <a href="http://wescpy.blogspot.com" target="_blank">http://wescpy.blogspot.com</a></div></div>
</div></div>