15,406 Topics
![]() | |
Hey I'm Jeff, they call me Double D ( Dont even ask). I am a beginner in Python and hoping to be a world class programmer (hacker?) before Im 20 (age remains undisclosed but Im not 20..Duh). Until I finish Python I wont really do anything else,. Relationship? Please, first … | |
![]() | hi again i have been learning about algorithm solving and designing from the website [URL="http://www.ece.uci.edu/~chou/py02/python.html"]here[/URL] i sort of understood the first code but before i went on any further i wanted to understand it the code is [ICODE]def InsertionSort(A): for j in range(1, len(A)): key = A[j] i = j … |
I have tried several things, but I just can't get this to work. What I need is a snippet which scans a program for value X, and then simply assigns a varible within the python script to the X value. I'm new to Python, but not to programming. Please be … | |
Hi, I am trying to get Python to pick random letters from a given list. However I don't want any repetitions, I just can't seem to figure out how to skip on letters already chose. Any help would be greatly appreciated. Here is what I have so far [code] let … | |
hi, is there any buitin function like ismethod, to check whether the method exists in the class. for example, Class sample: def fun(): def meth() object = sample(). passing this object(class instance) and fun(function name of class) as inputs i need to find out, whether this function is a member … | |
Could someone help me with this. How do i make a recursive program that returns sum of 1**3 + 2**3 + ... + n**3? | |
looking for a Python/Django Developer in Jersey City NJ. Beloqw is the job description Job Summary: This is a programming position in the technical department of Advance Internet, working on application development, application integration, automated testing and deployment of applications, publishing structure and unit testing in various development environments. Job … | |
Hi I am new to python programming and I am trying to embed some python calls into my C++ program. I made a simple module called 'test.py' which has the following lines : [code] //---------test.py------------------ message = 'The meaning of life...' def transform (input): input = input.replace ('life', 'Python..'); return … | |
Hello all, Beginning my preparation for python 3.0, I just installed python 2.6 and the adapted wxpython. The problem is I can not run the IDLE neither the Module doc of 2.6. I can run the python command line, and that works. But I want to use the IDLE. After … | |
so i have to write regression line program which is hard enough seeing as i just started so i need help, 1st thing is how do i write a loop for mouse clicks of any number, then write the average of whatever the amount of mouseclicks, thanks! | |
I'd really like to be able to ask my program "where is the mouse pointer?" at any given time. Ideally I'll want people to click and hold a button, which will cause a stream of events to occur, and then (at varying points) the program should find out where their … | |
I need to capture sound that is being sent to my speakers or at the very least capture sound that is coming in through a microphone or something using a module in python. I also need to be able get data such as amplitude and or frequency from this easily. … | |
hi all, assuming a path of for example "C:\Python24\development\radar\nra.py" where 'nra.py' is the executable file, could someone please show me the exact syntax for a call to os.execv() in order to run the file 'nra.py'. (nra.py requires no arguments when called. ) Thanks in advance! | |
Hi all, I have a frame and on click of a button, a dialog box is popped up. I want the dialog box to pop up always at the centre of the frame irrespective of where the frame is located on the screen. Presently this is not happeneing. Help needed! … | |
Hi Please let me know the code how to read an excel file and draw bar charts for each sheet using python script | |
Hi, I have a homework assignment to write a function to compute the nth fibonacci number where n is the value input by the user. For example, if n=6, then the result is 8. I saw a problem like this in one of the forums but i would like some … | |
I just downloaded ActivePerl, hoping it was some kind of IDE for perl. I run windows XP service pack 3 on this box. My Linux Box has perl already installed, but I want to use perl on my windows box as well. I know nothing about perl, so do I … | |
Evening all, Been working through a pygame tutorial i stumbled across the other day and typed it out (no copying an pasting as i needed to learn about it :D), and in the last clas i typed out, there is an error about RenderUpdates not accepting indexing.... The tutorial is … | |
Hi I am new to python . I need source code to draw scatter plot using Python my Input_1 is something like below: ------------------------------------------- ID X Y Z 120321 172.15 -285.03 -870.09 120323 244.31 -257.18 -870.19 120324 274.65 -277.03 -870.10 120327 226.51 -263.98 -870.09 120328 268.55 -271.05 -870.10 my Input_2 … | |
(this is an oldie, but I don't see that it's been posted here on DaniWeb) 1. Defensive programming? Never! Klingon programs are always on the offense. Yes, offensive programming is what we do best. 2. Specifications are for the weak and timid! 3. This machine is GAGH! I need Quad … | |
I need a module or something that I can use with Python that I can use to 'listen' to things like the amplitude of the sound that is being played out of my speakers... The module would optimally be something that has an easy way to obtain the amplitude as … | |
WinXP Home, sp2: I am going thru the tutorial @ [url]http://zetcode.com/wxpython/firststeps/[/url] The exercises are great. BUT I am still running with 1) dle.exe, 2) python shell, and 3) an idle text input screen (Centre.py). [ C:\Program Files\Python26\Lib\idlelib\vm ] When I click on PythonW.exe it does nothing. I tried the directions … | |
I am working on a text adventure for my cis class. Just to let you know, the code is graphic, and may be offensive to those who might be a begger LOL. Anyways, my functions do not seem to work properly. I looked over them, they seem fine. where am … | |
Hi I have a question regarding python, I have been meaning to study the language for sometime now just have not got around to it, Im looking to start soon but I read an article about how Python 3.0 is very different from the earlier versions. Will it be worth … | |
Hello all, I am a self-taught programmer with about 2 years experience and am having a problem trying to launch a pygame program as the last act of a wxPython app. If I explain what I am trying to do and why perhaps someone can help. I am writing the … | |
Hi guys, I'm new to programming and am learning with Python. I am trying to write a program that will get information from a website and display it in a program. Specifically, I'm writing a stock portfolio program that will look up information on a specific ticker and return that … | |
I encountered this error "SyntaxError: can't assign to function call" while experimenting with the pickle method. What I was trying to do was store something simple like the string "x = 5" and have python eval() the string later to bring the variable x back into existence in a later … | |
I have a sentence generator that I set up with a "make" button to print the generated sentence, but I want it to print to the resultBox area, and instead it prints to the terminal window. I'm assuming it has something to do with the return sentence portion of it. … | |
Hi guys, I'm working my way through the Project Euler problems to help teach myself programming, so I'm looking to write a function that will return all possible permutations of a n digit number so that I can test for a condition on each permutation. So, for example, if the … | |
Request for help from Python beginner: I don't want you to do the work for me, just some help to know where my mistakes are and how to correct them. I am trying to code a program to convert any decimal number into binary. In the case of an infinitely … | |
Here I go with yet another of my don't-get-the-syntax-problems. For some reason I tend to get a lot more from putting a question here than reading through a few dozen pages of documentation, which I have once again done. Say I have a dictionary as a basic data structure in … | |
Well I started getting into coding learning the basics of Python and looking into C++ but I'm not sure if it's really something I want to do, so I'm looking to get into and explore web development I'm wondering though where I should start after learning basic HTML? I've read … | |
I was playing with wxpython Demo and wanted to go on playing with Rich Text. I found this: [CODE=python] self.MakeMenuBar() self.MakeToolBar() [/CODE] when I tried to make my own editor and call those two methods I get error. Can some one help me to explain out those two methods and … | |
Hi I have been mucking around with VPython for a bit now and i can use it for basic 3D Python but i have not yet worked out how to do things that arent the usual, add square, add arrow, add sphere. So i was wondering if it was even … | |
Does anyone have a good beginner resource guide to regular expressions in Python? I'm used to them in java. For example, in java I have some regular expressions that look like this: [CODE] PUNC_MATCH = "[\\d\\p{Punct}]+" PUNC_PREFIX = "^" + PUNC_MATCH PUNC_SUFFIX = PUNC_MATCH + "$" [/CODE] Basically its supposed … | |
Hi All, I have developed an application in Python and the UI is developed in BOA constructor. I have placed a gauge(Progress Bar) on the frame to let user know much of processing is done. With my observation, I have noticed that the application takes about 50 seconds to complete … | |
The comments are running willy-nilly, but at least in the pre-view mode it helps to click "Toggle Plain Text". [ICODE]if wish == 1: #Menu option word = input("Enter word: ") description = input("Enter description: ") print print tuplelist.append((word,description)) #tuplelist is originally defined as simply [] main_dictuples(tuplelist) #Returns the function for … | |
Hello, I am trying to make a program that takes input on the command-line and returns the result to textfile. The problem is that I get the error TypeError: can only concatenate tuple (not "str") to tuple WARNING: Failure executing file: <write_cml_function.py> [CODE]from scitools.all import * # imports numpy and … | |
![]() | hi again after watching the film 'war games' i decided i would try to create logic games, i want to start out simply with something like noughts and crosses. but i have no idea how to start so any advice would be appreciated. thanks in advance leegeorg07 |
[B]******************************[/B] [B]Sorry guys this works I tested with bad values[/B] [B]******************************[/B] Hello I'm having trouble with this function i have a list with dicts and I'm trying to make a search in the list. The problem is that my function doesn't return the list even though i know the values … | |
Hi Im pretty new to the whole C++ programming language but after learning python and java i decided to give it a go. I have been using tutorials at [url]www.cplusplus.com[/url] and that has been working fine but i came across a bit of code today i couldn't understand. It went … | |
![]() | Hi guys, I'm trying to write my first little program... I tell python the number of minutes i want it to shutdown/hibernate my computer and it will add that to the current time and perform the necessary action. However I'm really struggling to add the number of minutes to the … |
Hi please someone tell how to find and install packages? thanks | |
I'm new to python and I'm having trouble trying to sort a list correctly. I have a map of strings->Word objects. A word object contains a list of all the places in a file where the word occurs. So in the Word class I have this method: [CODE] def _cmp_(self,other): … | |
I am using Python ver 2.5 and Iron Python 1.1.2. When I tried to run a script which imports xlwt and creates a workbook, huge memory is being used and it is never released unless the application running the script is closed. This memory problems happen only when using site-packages. … | |
hi there, is there any editor or compiler that explain us what the lines of codes we have written means and is there any editor or compiler that we can use with html & php.mail [EMAIL="deinsh5@hotmail.com"]me[/EMAIL] | |
Okay, so I'm trying to make a kind of clock program, where every second it displays the next image in the sequence. I does just that. It displays the next image. But it doesn't replace the previous image, it just puts the next image on top. How would I get … | |
Hello, I know this is something extremely easy to do but i don't master the python syntax at the moment. I've read the documentation and I've been searching on the 'net for information but nothing that I've found seems to be what I'm looking for. Probably the reason is the … | |
Hi all, I want to know thtat what is the advantage of learning PYTHON.Where this language is used? Is this languge have any scope in future? Thanks | |
hi guys.. im having problems with my traffic lights. i want to execute the procesing of the traffic lights infinitely (i.e red to green to red continuously). im providing my code hoping to get a positive response soon. thanks.. [code=python] import Tkinter as tk import time import sys import datetime … |
The End.