Ahahahahaha... I have figured these out beyond comprehension and power. Wahhaha. It feels good to get something to work correctly. Thanks much Andre. I don't quite understand the putting of things inside the parentheses, but I've discovered that I don't really need to, because def text(): works just fine with everything I've done so far.
<br><br><div><span class="gmail_quote">On 5/30/07, <b class="gmail_sendername">Adam Urbas</b> <<a href="mailto:jped.aru@gmail.com">jped.aru@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I can't exactly show you the error message anymore, because the program is now screwed up in so many ways that I can't even get it to do the things it used to.<br><br>It says things like ERROR: Inconsistent indentation detected!
<br>1) Your indentation is outright incorrect (easy to fix), OR<br>2) Your indentation mixes tabs and spaces. Then it tells me to untabify everything, which i did and it still gives this message. I've started completely over with the exact same indentation and that one works.
<br><br>Oh my gosh this gmail is a fricken crack head... none of this stuff was here last night. I have no idea what was going on then, but everything you guys said is right here. The plain text is right next to the Check spelling, the reply to all is right above send and save now and in the corner near the little arrow. Well, it's working now.
<br><br>Ok, so if i have a section of code that is:<br><br>answer=(2+3):<br>print "answer", answer<br><br>so for the code above I would put: (I think I would have to have the two numbers and the addition thing in there wouldn't I; I saw something like this on Alan's tutorial last night.)
<br><br>def answer(2,3):<br> answer=(2+3)<br> print "answer",answer<br><br>That is obviously not right.:<br><br>There's an error in your program:<br>invalid syntax<br><br>when it says that it highlights the 2: def answer(
<span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 102);">2</span>+3):<br><br>Ok I think I understand these now. Thanks for the advice. I have this now:<br><br>def answer():<br> print("answer")
<br>answer()<br><br>It works too, yay!<br>Thanks,<br><span class="sg"><br>Au</span><div><span class="e" id="q_112dd8176a7157b6_2"><br><br><br><br><div><span class="gmail_quote">On 5/30/07, <b class="gmail_sendername">Andre Engels
</b> <<a href="mailto:andreengels@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">andreengels@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2007/5/30, Brian van den Broek <<a href="mailto:broek@cc.umanitoba.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
broek@cc.umanitoba.ca</a>>:<br>> Another fwd, folks.<br>><br>> Brian vdB<br>><br>> -------- Original Message --------<br>> Subject: Re: [Tutor] trouble with "if"<br>> Date: Tue, 29 May 2007 23:28:46 -0500
<br>> From: Adam Urbas <<a href="mailto:jped.aru@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jped.aru@gmail.com</a>><br>> To: Brian van den Broek <<a href="mailto:broek@cc.umanitoba.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
broek@cc.umanitoba.ca</a>><br>> References: <
<a href="mailto:BAY103-W11DE2E62FD41449A952D68B12F0@phx.gbl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">BAY103-W11DE2E62FD41449A952D68B12F0@phx.gbl</a>><br>> <<a href="mailto:465C64A4.60602@cc.umanitoba.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
465C64A4.60602@cc.umanitoba.ca</a>><br>> <
<a href="mailto:ef52818c0705292107n1ee0c105k54c02ccf4d85f7c6@mail.gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ef52818c0705292107n1ee0c105k54c02ccf4d85f7c6@mail.gmail.com</a>><br>>
<br>> I'm having trouble with the parentheses after the def thing(). IDLE
<br>> says that there is something wrong with it. If I type something<br>> between them, it says that there is something wrong with the quotation<br>> marks. If I just leave it like (), then it says that something is
<br>> wrong with what is after the parentheses. Unless my code is supposed<br>> to go between the parentheses. I'll try that.<br><br>Between the parentheses should go the variables you use (if any) when<br>calling the function. For example:
<br><br>def sayhello():<br> print "Hello"<br><br>You don't have any parameters here, so there's nothing between the brackets<br><br>def say(word):<br> print word<br><br>Now there is one parameter, namely word.
<br><br>def sayboth(word1,word2):<br> print word1<br> print word2<br><br>Here there are two parameters, word1 and word2.<br><br>The number of parameters should be the same as the number of<br>parameters you use when calling the function:
<br><br>sayhello()<br>say("One text")<br>sayboth("One text","Another text")<br><br>There is a much used method to make some of the parameters optional,<br>but we'll not go into that.<br>
<br>
To know what is going wrong with your program, I would have to see the<br>program (or a simplified version of it that still goes wrong) and<br>preferably also the exact error message you are getting.<br><br><br>--<br>Andre Engels,
<a href="mailto:andreengels@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">andreengels@gmail.com</a><br>ICQ: 6260644 -- Skype: a_engels<br>_______________________________________________
<br>Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Tutor@python.org
</a><br><a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br>
</span></div></blockquote></div><br>