Search Results

Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: Agentbob
Forum: Python Dec 9th, 2007
Replies: 3
Solved: Turtle graph
Views: 1,788
Posted By Agentbob
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
Solved: Turtle graph
Views: 1,788
Posted By Agentbob
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
Posted By Agentbob
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
Posted By Agentbob
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
Posted By Agentbob
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
Solved: Decimal convert
Views: 1,683
Posted By Agentbob
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...
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC