Right above the empty reply box is a "reply to all" link. Hit it, and you're good to go.<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;">Dang it... I am really going to have to figure out how to reply all.
<br>The cc thing only worked once and now I'm still sending to you.<br><br>On 5/30/07, Adam Urbas <<a href="mailto:jped.aru@gmail.com">jped.aru@gmail.com</a>> wrote:<br>> I started to read Alan Gauld's tutorial. The problem is, once I get
<br>> past the very basics of something, I tend to get impatient and don't<br>> want to go back and have to redo them, but the other problem is, I may<br>> need something that is taught in the basic sections. So ya, I'll try
<br>> to keep on a reading Alan's tutorial.<br>><br>> On 5/30/07, Adam Urbas <<a href="mailto:jped.aru@gmail.com">jped.aru@gmail.com</a>> wrote:<br>> > I have already subscribed. I tried sending a message when I was not
<br>> > yet subscribed, and the Moderator or Administrator, or whoever said to<br>> > resubscribe. Sorry about my accident programming.<br>> ><br>> > On 5/29/07, Adam Urbas <<a href="mailto:jped.aru@gmail.com">
jped.aru@gmail.com</a>> wrote:<br>> > > ok well, I'm testing to see if the CC thing worked.<br>> > ><br>> > > On 5/29/07, Adam Urbas <<a href="mailto:jped.aru@gmail.com">jped.aru@gmail.com
</a>> wrote:<br>> > > > I'll try the CC thing.<br>> > > ><br>> > > > On 5/29/07, Adam Urbas <<a href="mailto:jped.aru@gmail.com">jped.aru@gmail.com</a>> wrote:<br>> > > > > Well, Brian, I am now very sure that we have different versions of
<br>> > > > > gmail, because on both the Quick Reply and the full reply screens,<br>> > > > > there are no Reply buttons, or downpointing arrows.<br>> > > > ><br>> > > > > On 5/29/07, Adam Urbas <
<a href="mailto:jped.aru@gmail.com">jped.aru@gmail.com</a>> wrote:<br>> > > > > > What is the actual command to exit the program. I tried exit,<br>> which<br>> > > > > > turned purple, so I know that does something.
<br>> > > > > ><br>> > > > > > On 5/29/07, Adam Urbas <<a href="mailto:jped.aru@gmail.com">jped.aru@gmail.com</a>> wrote:<br>> > > > > > > No I don't think that worked either, because now it has a
<br>> problem<br>> > > with<br>> > > > > > > print.<br>> > > > > > ><br>> > > > > > > Please help.<br>> > > > > > ><br>> > > > > > > Au
<br>> > > > > > ><br>> > > > > > > On 5/29/07, Adam Urbas <<a href="mailto:jped.aru@gmail.com">jped.aru@gmail.com</a>> wrote:<br>> > > > > > > > I'm having trouble with the parentheses after the def thing().
<br>> > > IDLE<br>> > > > > > > > says that there is something wrong with it. If I type<br>> something<br>> > > > > > > > between them, it says that there is something wrong with the
<br>> > > > quotation<br>> > > > > > > > marks. If I just leave it like (), then it says that<br>> something<br>> > is<br>> > > > > > > > wrong with what is after the parentheses. Unless my code is
<br>> > > > supposed<br>> > > > > > > > to go between the parentheses. I'll try that.<br>> > > > > > > ><br>> > > > > > > > On 5/29/07, Adam Urbas <
<a href="mailto:jped.aru@gmail.com">jped.aru@gmail.com</a>> wrote:<br>> > > > > > > > > In the def welcome(), what do you put in the parentheses?<br>> > > Another<br>> > > > > > > > > question, what code do you use for ending the program. I
<br>> want<br>> > > the<br>> > > > > > > > > user to be able to cancel the program from the main menu,<br>> > where<br>> > > it<br>> > > > > > > > > asks you to choose circle, square, etc. Or even perhaps
<br>> allow<br>> > > the<br>> > > > > > > > > user to go back to a previous menu, well I suppose that<br>> would<br>> > be<br>> > > > the<br>> > > > > > > > > def thing() code. But what if they were at the part where
<br>> the<br>> > > > > program<br>> > > > > > > > > was asking them to input the radius, how would I give them<br>> the<br>> > > > > option<br>> > > > > > > > > of returning to the list of given measurements of a circle?
<br>> > > > > > > > ><br>> > > > > > > > > On 5/29/07, Brian van den Broek <<a href="mailto:broek@cc.umanitoba.ca">broek@cc.umanitoba.ca</a>><br>> wrote:<br>> > > > > > > > > > adam urbas said unto the world upon 05/29/2007 12:39 PM:
<br>> > > > > > > > > > > The scary part is, I think I understand this. I copied<br>> > your<br>> > > > > last<br>> > > > > > > > > > > example and put it in IDLE and it doesn't like you code.
<br>> > > > Never<br>> > > > > > > > > > > mind. I figured it out. So that is so it will notify<br>> you<br>> > > if<br>> > > > > your<br>> > > > > > > > > > > choice is invalid. Nice lil tidbit of information
<br>> there.<br>> > > > I'll<br>> > > > > be<br>> > > > > > > > > > > sure to use this. Oh and while your here, I'd like to<br>> ask<br>> > > > about
<br>> > > > > > > > > > > loops I guess they are. I want to have the program go<br>> > back<br>> > > to<br>> > > > > the<br>> > > > > > > > > > > part where it asks for the user to select an option
<br>> after<br>> > it<br>> > > > has<br>> > > > > > > > > > > run one of its if statements.Like, when the user tells<br>> it,<br>> > > > > > > > > > > "circle," then "radius," then enters the radius: here I
<br>> > > would<br>> > > > > like<br>> > > > > > > > > > > the program to go back and ask the user if they want to<br>> do<br>> > > > > > anything
<br>> > > > > > > > > > > else, like find the area of a square, instead of the<br>> > circle.<br>> > > > > > Would<br>> > > > > > > > > > > I have to tell python to print all those selections
<br>> again,<br>> > > or<br>> > > > > > would<br>> > > > > > > > > > > there be a way to just return to the<br>> beginning?Thanks,Au><br>> > > > Date:
<br>> > > > > > > > > ><br>> > > > > > > > > ><br>> > > > > > > > > > Hi Adam,<br>> > > > > > > > > >
<br>> > > > > > > > > > Again, I cut the mess, but I expect that if you use the<br>> > gmail<br>> > > > > > account<br>> > > > > > > > > > you just posted about here on in, that will be the end of
<br>> > it.<br>> > > > > > > > > ><br>> > > > > > > > > > I'm glad that you are starting to have the warm glow of<br>> > > > > > understanding
<br>> > > > > > > > :-)<br>> > > > > > > > > ><br>> > > > > > > > > > What you are asking about here is one reason why functions<br>> > are
<br>> > > > so<br>> > > > > > > > > > useful. They allow you (more or less) to give a name to a<br>> > > chunk<br>> > > > of<br>> > > > > > > > > > code, and then you can rerun that chunk at will by
<br>> invoking<br>> > > the<br>> > > > > > name.<br>> > > > > > > > > ><br>> > > > > > > > > > Given the problem you want to solve, I'd structure my code
<br>> > > > > something<br>> > > > > > > > > > like the following. Most of the details need to be filled<br>> > in,<br>> > > > but<br>> > > > > > this
<br>> > > > > > > > > > is the skeletal structure.<br>> > > > > > > > > ><br>> > > > > > > > > ><br>> > > > > > > > > > def welcome_message():
<br>> > > > > > > > > > # Some actions to invoke when the user starts the<br>> > program<br>> > > > > > > > > > print "Welcome to this program."
<br>> > > > > > > > > ><br>> > > > > > > > > > def display_menu():<br>> > > > > > > > > > # Insert code for showing the user the menu of
<br>> options<br>> > > > > > > > > > pass<br>> > > > > > > > > ><br>> > > > > > > > > > def circle_area():<br>> > > > > > > > > > # insert code here to ask user for the radius,
<br>> compute<br>> > > the<br>> > > > > > area,<br>> > > > > > > > > > # and display the result. You might well want to<br>> divide<br>> > > > that
<br>> > > > > up<br>> > > > > > > > > > # into other functions that this one calls.<br>> > > > > > > > > > pass<br>> > > > > > > > > >
<br>> > > > > > > > > > def square_area():<br>> > > > > > > > > > # Likewise<br>> > > > > > > > > > pass<br>> > > > > > > > > >
<br>> > > > > > > > > > # And so on, for each shape that you wish to handle<br>> > > > > > > > > ><br>> > > > > > > > > > def exit_message():
<br>> > > > > > > > > > # Some actions to invoke when the user chooses to<br>> > > terminate<br>> > > > > > > > > > # the program.<br>> > > > > > > > > > print "Thank you for using this program. Goodbye."
<br>> > > > > > > > > ><br>> > > > > > > > > > def prompt_user():<br>> > > > > > > > > > # Here is where the sort of code I showed you before
<br>> > > would<br>> > > > > go.<br>> > > > > > > > > > # I'd include an option, say 0, for exiting, which,<br>> > when<br>> > > > the<br>> > > > > > > > > > # user picks it, you call exit_message()
<br>> > > > > > > > > ><br>> > > > > > > > > > while True:<br>> > > > > > > > > > try:<br>> > > > > > > > > > choice = int(raw_input("Please make your
<br>> choice<br>> > > "))<br>> > > > > > > > > > if choice < 0 or choice > 2: # Adjust to suit<br>> > > > options<br>> > > > > > > > > > raise ValueError
<br>> > > > > > > > > > break<br>> > > > > > > > > > except ValueError:<br>> > > > > > > > > > print "Please make a choice from the options
<br>> > > > > offered."<br>> > > > > > > > > ><br>> > > > > > > > > > # sends the choice back to the code that called<br>> > > prompt_user
<br>> > > > > > > > > > # We won't get here until a good choice has been made<br>> > > > > > > > > > return choice<br>> > > > > > > > > >
<br>> > > > > > > > > > def main():<br>> > > > > > > > > > # The main function driving your program. It might<br>> look<br>> > > > > > > > > > # something like this:
<br>> > > > > > > > > > welcome_message()<br>> > > > > > > > > ><br>> > > > > > > > > > while True: # This will loop forever until you
<br>> break<br>> > > out<br>> > > > > > > > > > display_menu()<br>> > > > > > > > > > choice = prompt_user()<br>> > > > > > > > > >
<br>> > > > > > > > > > if choice == 0:<br>> > > > > > > > > > exit_message()<br>> > > > > > > > > > break # Terminate the while loop
<br>> > > > > > > > > > elif choice == 1: # Assuming 1 was the option<br>> for<br>> > > > circle<br>> > > > > > > > > > circle_area()
<br>> > > > > > > > > > elif choice == 2:<br>> > > > > > > > > > square_area()<br>> > > > > > > > > > # And so on
<br>> > > > > > > > > ><br>> > > > > > > > > > print "Please make another choice:" # Go back<br>> to<br>> > > top<br>> > > > of
<br>> > > > > > > loop<br>> > > > > > > > > ><br>> > > > > > > > > ><br>> > > > > > > > > > if __name__ == '__main__':
<br>> > > > > > > > > > # This will run if you run the script, but not if you<br>> > > > import<br>> > > > > > it.<br>> > > > > > > > > > main()
<br>> > > > > > > > > ><br>> > > > > > > > > ><br>> > > > > > > > > > This has not been tested (it is only an outline) but it<br>> does
<br>> > > > pass<br>> > > > > > the<br>> > > > > > > > > > only so reliable eyeball check :-)<br>> > > > > > > > > ><br>> > > > > > > > > > I'd suggest you try filling this sketch out to be useful,
<br>> > and<br>> > > > post<br>> > > > > > if<br>> > > > > > > > > > you run into troubles.<br>> > > > > > > > > ><br>> > > > > > > > > > Best,
<br>> > > > > > > > > ><br>> > > > > > > > > > Brian vdB<br>> > > > > > > > > ><br>> > > > > > > > ><br>
> > > > > > > ><br>> > > > > > ><br>> > > > > ><br>> > > > ><br>> > > ><br>> > ><br>> ><br>><br>_______________________________________________
<br>Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br>