Re: User Input

2013-05-30 Thread Eternaltheft
> And perhaps you meant for your function to CALL drawBoard(), rather than > returning the function object drawBoard. > DaveA do you think it would be better if i call drawBoard? -- http://mail.python.org/mailman/listinfo/python-list

Re: User Input

2013-05-30 Thread Eternaltheft
> And perhaps you meant for your function to CALL drawBoard(), rather than > > returning the function object drawBoard. > > DaveA do you think it would be better if i call drawBoard? -- http://mail.python.org/mailman/listinfo/python-list

Re: User Input

2013-05-30 Thread Eternaltheft
do you think ti would be better if i call drawBoard? -- http://mail.python.org/mailman/listinfo/python-list

Re: User Input

2013-05-30 Thread Eternaltheft
yeah i found out why it wasn't defined before because i tried to put it into a function. this is my drawBoard function: import turtle as Turtle Turtle.title("Checkers") b = 75 def drawBoard(b): Turtle.speed(0) Turtle.up() Turtle.goto(-4 * b, 4 * b) Turtle.down() for i

Re: User Input

2013-05-30 Thread Eternaltheft
sorry about that, i got confused xD. yeah it works good now. what i meant to say was can i return a function that i made, if the user inputs nothing? -- http://mail.python.org/mailman/listinfo/python-list

Re: User Input

2013-05-30 Thread Eternaltheft
Ok thanks guys. but when i use filename = input('file name: ') if not filename: #i get filename is not defined return(drawBoard) #possible to return function when no file input from user? -- http://mail.python.org/mailman/listinfo/python-list

Re: User Input

2013-05-30 Thread Eternaltheft
On Thursday, May 30, 2013 7:33:41 PM UTC+8, Eternaltheft wrote: > Hi, I'm having trouble oh how prompt the user to enter a file name and how to > set up conditions. For example, if there's no file name input by the user, a > default is returned Thanks for such a fast reply!

User Input

2013-05-30 Thread Eternaltheft
Hi, I'm having trouble oh how prompt the user to enter a file name and how to set up conditions. For example, if there's no file name input by the user, a default is returned -- http://mail.python.org/mailman/listinfo/python-list

Re: How to return list of lists

2013-04-25 Thread Eternaltheft
Thank you so much for the help, I get it now :D. I really appreciate you taking the time to explain it into detail for me -- http://mail.python.org/mailman/listinfo/python-list

Re: How to return list of lists

2013-04-25 Thread Eternaltheft
Haha i'm confused? im guessing you mean the triangular table i said i posted before? its this one 12345 3456 567 78 9 this was the table in my original post -- http://mail.python.org/mailman/listinfo/python-l

Re: How to return list of lists

2013-04-25 Thread Eternaltheft
On Friday, April 26, 2013 12:05:32 AM UTC+8, Eternaltheft wrote: > Haha i'm confused? im guessing you mean the triangular table i said i posted > before? its this one > > > > 12345 > > 3456 > > 5

Re: How to return list of lists

2013-04-25 Thread Eternaltheft
Definitely not, like i said I'm having trouble doing it, you didn't have to write a code for me, i just need an explanation on how to do it. sorry if it felt like i was trying to get my homework done -- http://mail.python.org/mailman/listinfo/python-list

Re: How to return list of lists

2013-04-25 Thread Eternaltheft
On Thursday, April 25, 2013 11:29:31 PM UTC+8, Wolfgang Maier wrote: > gmail.com> writes: > > > > > > > > Hi guys, I'm having a lot of trouble with this. > > > > > > My understanding of python is very basic and I was wondering how I can > > return this table as a list of lists. > > > >

How to return list of lists

2013-04-25 Thread eternaltheft
Hi guys, I'm having a lot of trouble with this. My understanding of python is very basic and I was wondering how I can return this table as a list of lists. 1 2 3 4 5 3 4 5 6 5 6 7 7 8 9 The function is def Table(n): Then how would I