Re: [Tutor] Function definition
On 30/09/13 01:13, Sammy Cornet wrote: Greets!! Your help provided to me concerning function definition > was awesome Steven. Gratitude...!!! I'm not sure who's tongue is furthest into their cheek here. But please, in future show us some code and any error messages, it does make it easier to answer your question. But if Steven's inspired guess helped then good for you. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Function definition
Greets!! Your help provided to me concerning function definition was awesome Steven. Gratitude...!!! Sent from my iPhone On Sep 28, 2013, at 9:56, "Steven D'Aprano" wrote: > On Sat, Sep 28, 2013 at 10:19:57AM -0500, Sammy Cornet wrote: >> Hello! >> I'm using python v2.7.5 (IDLE). I'm trying to write a nine_line >> function that should use three_lines to print nine blanc lines. For >> some reason, I only print one line. Can you please provide me with >> some explanation? I would be very grateful! > > Yay, a guessing game! I love guessing games! > > Let me see... my guess is that instead of writing: > > sys.stdout.write("\n"*9) > > you have written > > sys.stdout.write("\n") > > Am I close? > > If by some chance I have guessed wrong, perhaps you would like to show > us what code you have. It's not as much fun as playing "Guess Where The > Bug Is", but it's usually much faster and more accurate. > > > > -- > Steven > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Function definition
On 28/9/2013 11:19, Sammy Cornet wrote: > Hello! > I'm using python v2.7.5 (IDLE). I'm trying to write a nine_line function that > should use three_lines to print nine blanc lines. For some reason, I only > print one line. Can you please provide me with some explanation? I would be > very grateful! Judging from the code sample you showed us, your problem is too much white space. ;-> If you show us the code, we might show you where you go wrong. Or are you just waiting for somebody to do your homework and steal your learning experience? -- DaveA ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Function definition
On Sat, Sep 28, 2013 at 10:19:57AM -0500, Sammy Cornet wrote: > Hello! > I'm using python v2.7.5 (IDLE). I'm trying to write a nine_line > function that should use three_lines to print nine blanc lines. For > some reason, I only print one line. Can you please provide me with > some explanation? I would be very grateful! Yay, a guessing game! I love guessing games! Let me see... my guess is that instead of writing: sys.stdout.write("\n"*9) you have written sys.stdout.write("\n") Am I close? If by some chance I have guessed wrong, perhaps you would like to show us what code you have. It's not as much fun as playing "Guess Where The Bug Is", but it's usually much faster and more accurate. -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor