Forum: Python Dec 9th, 2007 |
| Replies: 3 Views: 1,788 So the feature isn't implemented by default? It's a project and I doubt my professor has his files edited. |
Forum: Python Dec 7th, 2007 |
| Replies: 3 Views: 1,788 I'm trying to change the font for the turtle graph.
def goto(x,y):
turtle.up()
turtle.goto(x,y)
turtle.down
import turtle
turtle.tracer(False)
turtle.width(3) |
Forum: Python Oct 22nd, 2007 |
| Replies: 3 Views: 3,517 1. Make carry=1, and newBitString=""
2. Calculate sum of carry and last (rightmost) bit of the BitString.
If the sum equals to 2 then make lastBit=0 and carry=1;
otherwise make lastBit = sum and... |
Forum: Python Oct 22nd, 2007 |
| Replies: 3 Views: 3,517 No, not exactly. What I"m trying to do is two bit complement.
So for example, I want to determine the two bit complement of 10 with 4 bits.
1010 would be the binary of 10.
1010 --> 0101
... |
Forum: Python Oct 22nd, 2007 |
| Replies: 3 Views: 3,517 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... |
Forum: Python Oct 22nd, 2007 |
| Replies: 1 Views: 1,683 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... |