raising number to a power  

Is there a benefit (besides brevity) one way or the other between using: import math...math.pow(x,y) # x raised to the power y vs. x**y ? Thanks, Monte Continue Reading
Views : 48
Friday 28th of December 2012

Beginning to learn Python.  

I've downloaded and installed the Python interpreter, and I'm just now beginning to read my first book on Python. Wish me luck. Continue Reading
Views : 28
Friday 28th of December 2012

where are the program that are written in python  

It has one bug. Sluggish is my cheap server dealing with the AJAX. Care to find the bug? It's an intellectual pursuit that'll take a lot of time to pin down by gathering empirical evidence. Continue Reading
Views : 40
Friday 28th of December 2012

is python the best choice to start   

I agree that low level concepts do not always come handy in daily work, but I think knowledge of them can help you grasp the meaning of higher level ones. And I am not saying to spend the time to learn to code assembly or do hardware design - just familiarize yourself... Continue Reading
Views : 45
Friday 28th of December 2012

Python; though art a Delicious Torment  

Hello Programming forums. i am as you may soon discover very new here, i have been interested in programming for a while and after some research chose to begin in python as it is a fairly straight forward language and i can understand it to an extent. now here is my... Continue Reading
Views : 57
Friday 28th of December 2012

My journey through programming  

While must be followed by a non-optional expression. The expression given by the empty tuple () in while(): evaluates to False, so the loop never begins. If you want an infinite loop, then use Continue Reading
Views : 51
Friday 28th of December 2012

Learning Python  

Quote: Originally Posted by... Continue Reading
Views : 36
Friday 28th of December 2012

a value in python  

How a value of os back to program ? (Toggle... Continue Reading
Views : 56
Friday 28th of December 2012

Create a class to represent an iterator through a sequence  

I'm trying to make a class that will represent an iterator through the Beatty sequence of a given r. (See This is what I have so far: Continue Reading
Views : 38
Friday 28th of December 2012

Using data file help.  

I am fairly new to programming and I wanted to if I can get some help with a program I am trying to make. I am not sure about file input/output.I have a .dat file I made that contains the following.Background: bg1.bmpMusic: song1.wav Continue Reading
Views : 34
Friday 28th of December 2012

How should a n00b go about learning python  

I want to learn programming, but I know it requires a lot of practice. This may seem like an incredibly stupid question, but how can I practice programming?Thanks in advance Continue Reading
Views : 49
Friday 28th of December 2012

Help with sqrt functions  

Hi! I have a program exercise for python, I know how to use the sqrt() function but I am having trouble running the program to continue to find the sqrt of an input until it goes down to 2. i'll post the exercise and then my is the... Continue Reading
Views : 21
Friday 28th of December 2012

How to uninstall wxpython 2.8 from Mac OSX 10.6  

Some details of my machine and installed packages before proceeding further:Mac OSX version: 10.6.6 Python version: Activestate Python 2.7.1 wxpython version: wxpython 2.8 (uses Carbon API hence limited to 32-bit mode arch only) Continue Reading
Views : 54
Friday 28th of December 2012

Python on the Mac  

Hey GuysI understand Mac OS X has python built in, however is there anything I need? Also, can you suggest any good tutorials for python on the Mac?Any tip you guys can give me would be great. Cheers. Continue Reading
Views : 51
Friday 28th of December 2012

python while-loop help!  

So I'm learning python(as you can tell by all the noob questions) and I was given an example code and i want to alter it so that when the person types in 1 the loop happens? but its not working no loop happens when I type in one? anyone who can help? Continue Reading
Views : 69
Friday 28th of December 2012

Good tutorials for python  

Hi I was wondering if anybody had any suggestions for books/online tutorials for python I am currently using 'learning python' by mark lutz but i don't really like it.I was also wondering how you guys like to type code ex: text editor than python interpreter or... Continue Reading
Views : 91
Friday 28th of December 2012

Python 3 script to exe  

I wanted to know if there's a way to convert a python 3 script to exe. I installed py2exe and tried to follow some YouTube tutorials but it's not working. Is there a way I can convert a python script to an exe for Windows ? Continue Reading
Views : 68
Friday 28th of December 2012

from screen to file  

I use a program that produce a graphic (imagine a sinusoid, more or less).There is no opportunity to obtain from the program an output of the coordinates of the points of this curve.I desperately tried a way to achieve this, for example using a program... Continue Reading
Views : 53
Friday 28th of December 2012

Heads or Tails  

Here's the relevant part isolated: (Toggle Plain Text) counter = 1if(counter > maximum): maximum =... Continue Reading
Views : 92
Friday 28th of December 2012

Static Text Freeze  

Everytime I try to run a static text program using the wx.Python commands the new window appears, a little gray section where the text should be appears, but then it freezes and won't respond. I've run the program minus the text and it all appears fine, but... Continue Reading
Views : 56
Friday 28th of December 2012

where's the scope  

(Toggle Plain Text) while guess !=randomnumber: if guess>randomnumber: print("lower") else: ... Continue Reading
Views : 22
Friday 28th of December 2012

Parsing - How To  

@sixstringartist: I assumed this was just a learning exercise. Otherwise, you're right that there's probably no need to dive this deep. Continue Reading
Views : 52
Friday 28th of December 2012

python hashing dictionary with chaining  

ok so thats the code i had before how would i implement it i understand now about copying the list makes sense Continue Reading
Views : 41
Friday 28th of December 2012

Improvement suggestions  

Hi, just wanted to get feed back to see if I'm doing anything wrong or if this can be Python Syntax ( Continue Reading
Views : 28
Friday 28th of December 2012

Design A Module Program  

Can someone help design this module program for python.There are three seating categories at a stadium. For a softball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Design a module program that asks how many tickets for... Continue Reading
Views : 37
Friday 28th of December 2012

What should I do to increase user interaction within a VN game  

What should I do to increase user interaction within a VN game?- Shall I include some RPG, but my client want something small (max 3 game days), full of information and lots of user interaction - What should I do? Continue Reading
Views : 44
Friday 28th of December 2012

suggestions please  

hello guys!I want to learn python.what all tools do I need? what is the best book for it? Continue Reading
Views : 81
Friday 28th of December 2012

Good Python Resources/Books  

I was wondering if anyone knew of any thorough books/resources on learning python. Currently I'm using this site: like it... Continue Reading
Views : 26
Friday 28th of December 2012

Statements Vs. Expressions  

Hello. I know what both statements and expressions are, but it seems like from the processor's point of view there isn't much difference. The book I'm reading sais that statements are instructions that can be executed. Would not 1+1, an expression, be executed in the... Continue Reading
Views : 131
Wednesday 28th of November 2012

While And Random Problem [solved]  

G'day allI am working my way through a book called "Python programming for absolute beginners" (I have very little programming experience) and at the end of one chapter you are asked to write a simple coin toss programme that tosses a coin 100 times and... Continue Reading
Views : 118
Wednesday 28th of November 2012