> 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
> 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
do you think ti would be better if i call drawBoard?
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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!
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
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
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
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
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
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.
>
> >
>
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
14 matches
Mail list logo