<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;">Sorry, Hotmail doesn't have a turn of HTML feature or if it does, I couldn't find it.&nbsp; I think I'm just going to take your word for it that raw_input is better because I find the entire concept quite confusing.&nbsp; I tried typing in your example in IDLE and it didn't do anything, except:<br><br>&gt;&gt;&gt;<br><br>&gt;&gt;&gt;<br></div><br>And then it told me that it didn't know what the &gt;&gt;("LOL") was.&nbsp; It really disliked the &gt;&gt; bit.&nbsp; I understand the concept though, I think.&nbsp; I have been using the raw_input though.&nbsp; If I change it from <br><br>var=raw_input()<br>&gt;&gt;("LOL")<br><br>to <br><br>var=raw_input("LOL")<br><br>then it displays<br><br>&gt;&gt;&gt;<br>LOL<br><br>&gt;&gt;&gt;<br><br>Not sure what that means, but yeah.&nbsp; Well thanks anyway.<br><br>Adam<br><br><br><hr id="stopSpelling">&gt; Date: Sat, 19 May 2007 01:47:51 +0100<br>&gt; From: finalyugi@sapo.pt<br>&gt; To: adamurbas@hotmail.com; tutor@python.org<br>&gt; Subject: Re: [Tutor] two input acceptions<br>&gt; <br>&gt; adam urbas escreveu:<br>&gt; &gt; Thanks for the help.  I've made quite some progress since I first posted this email.  I have a question though, what did you mean when you were talking about the raw_input( )?  How can the regular input( ) be used evilly?  If you could explain in depth, I would be very grateful.  I have a new question related to my program area.py., I guess it's the same one as before.  When I run the program and input the rectangle option, it asks me for a radius, unless I input 1, instead of rectangle.  How do I program it to accept both 1 and rectangle?&gt; Date: Sat, 12 May 2007 18:55:20 +0100&gt; From: finalyugi@sapo.pt&gt; To: adamurbas@hotmail.com&gt; CC: tutor@python.org&gt; Subject: Re: [Tutor] (no subject)&gt; &gt; adam urbas escreveu:&gt; &gt; Hi,I just started python today and I would like a few pointers, if you don't mind.  I tried using a tutorial, but was only able to get the correct results for the most basic problems.  # Area calculation programprint “Welcome to the Area calculation program”print “––<br>&gt; –––––––––––”print# Print out the menu:print “Please select a shape:”print “1  Rectangle”print “2  Circle”# Get the user’s choice:shape = input(“&gt; “)# Calculate the area:if shape == 1:    height = input(“Please enter the height: “)    width = input(“Please enter the width: “)    area = height*width    print “The area is”, areaelse:    radius = input(“Please enter the radius: “)    area = 3.14*(radius**2)    print “The area is”, areaI've been trying to get this to work.  I was on a forum on Google and they said to put:input("press ENTER to continue")at the end.  I did, but it didn't work.  It runs the program but just shuts itself off when its done and i don't even get to select any of the option things that i'm s&gt; upposed to be able to select.  It just turns on then back off and I don't even get to see anything.  Could someone help me out.ThanksAdam&gt; &gt; _________________________________________________________________&gt; &gt; Create the ultimate e-mail address book. Import your cont<br>&gt; acts to Windows Live Hotmail.&gt; &gt; www.windowslive-hotmail.com/learnmore/managemail2.html?locale=en-us&amp;ocid=TXT_TAGLM_HMWL_reten_impcont_0507&gt; &gt; &gt; &gt; &gt; &gt; ------------------------------------------------------------------------&gt; &gt; &gt; &gt; _______________________________________________&gt; &gt; Tutor maillist  -  Tutor@python.org&gt; &gt; http://mail.python.org/mailman/listinfo/tutor&gt; &gt; First, welcome to the world of Python. :D&gt; Second. please give a title when you start a new thread on a mailing list.&gt; Third, format your posts and code. Since Python uses indented code, it's &gt; kinda hard to read it when it's all in one line (Don't worry, I'll paste &gt; it indented in a file attached to this email :D )&gt; &gt; Now for the code.&gt; &gt; After arranging the code, the first thing I noticed were this characters “ ”&gt; &gt; I tried running the code, and if gave me a error there, so I just &gt; replace then with " ", and voilá, the code worked :D . So the lesson &gt; here is always use either " " or ' ' in the code.&gt; &gt; Oh, a<br>&gt; lso another thing. Don't use input() to get the user input, because &gt; that command can run code and it may be evilly used. Always use &gt; raw_input() instead :D .&gt; &gt; Anyway, I hope I helped you,&gt; &gt; &gt; -- &gt;                         _&gt; ASCII ribbon campaign ( )&gt;   - against HTML email  X&gt;               &amp; vCards / \<br>&gt; &gt; _________________________________________________________________<br>&gt; &gt; Create the ultimate e-mail address book. Import your contacts to Windows Live Hotmail.<br>&gt; &gt; www.windowslive-hotmail.com/learnmore/managemail2.html?locale=en-us&amp;ocid=TXT_TAGLM_HMWL_reten_impcont_0507<br>&gt; <br>&gt; First of all, what email client are you using?<br>&gt; Because the text is getting all weird and difficult to read (it's all in <br>&gt; one line, with no paragraphs and things like that).<br>&gt; <br>&gt; Now, the thing about input() and why it's not a good policy to use is <br>&gt; that, unlike raw_input(), what type in a input() is executed by Python <br>&gt; (in raw_input() is stored as a string).<br>&gt; <br>&gt; Example:<br>&gt; <br>&gt; var = raw_input()<br>&gt;  &gt;&gt; list("LOL")<br>&gt; <br>&gt; Now we have a variable called var which contains the string that says <br>&gt; 'list("LOL")'<br>&gt; You can confirm that by typing:<br>&gt; print var<br>&gt;  &gt;&gt; 'list("LOL")<br>&gt; <br>&gt; There, no harm done. Now let's try the same thing using the input() command:<br>&gt; <br>&gt; var = input()<br>&gt;  &gt;&gt; list("LOL")<br>&gt; <br>&gt; Now let's type "print var" again as we did before.<br>&gt; <br>&gt; print var<br>&gt;  &gt;&gt; ['L', 'O'. 'L']<br>&gt; <br>&gt; Now what happened? Because you used the input() command, what you type <br>&gt; was interpreted by Python, instead of being stored in a string and since <br>&gt; the list() command is used to create a list, Python did just that. He <br>&gt; created a list. Now, in this example, no harm was done. But image <br>&gt; someone typing the command os.system("command to delete some file or run <br>&gt; some file"). That would send a delete command to the terminal, or <br>&gt; install some file (it could even be a virus).<br>&gt; <br>&gt; Ok, it's a little harder to explain, but the thing you should is that <br>&gt; usually raw_input() = GOOD, input() = BAD.<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Now, I couldn't quite understand the second problem.<br>&gt; Please explain a little better.<br>&gt; <br>&gt; PS: Now I know why I see all posts messed up. It's because you're <br>&gt; sending your emails as a HTML, and I deactivated that on my email <br>&gt; client. I don't know if Hotmail (I believe you send you emails from <br>&gt; there) as an option to turn off HTML. If it was please use it :D<br>&gt; (Besides being nice, you can get more responses if you do that. Not <br>&gt; everyone has an HTML capable email client.)<br>&gt; <br>&gt; PS2 (no, not the console): I just noticed you didn't send the email back <br>&gt;   to the mailing list. You should select reply to all (or a similar <br>&gt; option) when replying to mailing list, so that other people can learn too.<br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt;                         _<br>&gt; ASCII ribbon campaign ( )<br>&gt;   - against HTML email  X<br>&gt;               &amp; vCards / \<br><br /><hr />Create the ultimate e-mail address book. Import your contacts to Windows Live Hotmail. <a href='www.windowslive-hotmail.com/learnmore/managemail2.html?locale=en-us&ocid=RMT_TAGLM_HMWL_reten_impcont_0507' target='_new'>Try it!</a></body>
</html>