No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm trying to change the font for the turtle graph. [code] def goto(x,y): turtle.up() turtle.goto(x,y) turtle.down import turtle turtle.tracer(False) turtle.width(3) goto(-270,270) turtle.right(90) turtle.forward(540) turtle.left(90) turtle.forward(540) turtle.left(90) turtle.forward(540) turtle.left(90) turtle.forward(540) goto(50,50)[B] turtle.write('testing')[/B] turtle.tracer(True) [/code] That's a box I created and I want to add text to it. I looked around the … |
|
1+1 is 10 in binary and then you carry over the 1. I was wondering how to do that with Python? I was able to invert the binary and determine the sum of the rightmost bit and if it's 2, the rightmost digit would become 0. This is where I'm … |
|
I'm trying to convert decimal to binary and I'm having a lot of trouble (new to python). I was wondering why that won't work. Thanks. EDIT: Argh, I'm so sorry but I got it fixed. It turns out that the assigned variables are on the wrong side. |