15,175 Topics
| |
Hey, I'm brand new to Python and I'm sorry if my code/question is sloppy and ridiculous. I had to make a snowman for homework, but now I have to make the entire snowman move 6 times wherever the user clicks. I used this at first, but it obviously only moves … | |
Hi everyone! I'm trying to make a function in Python that converts a csv file into a xls file. I have to convert about 500 files so you understand that I need it to be as clean as possible. This is the code I wrote, just for one file later … | |
hi, i want to develop small games using python on mac. so which modules /libraries i have to import . and how to proceed to develop the game... plz tell me. | |
description: Reading data from active directory. some names have the French accented E. when I write to screen, no problems. when I write to a .txt file the program errors out with... [I]Traceback (most recent call last): File "ad-listing.py", line 20, in <module> print >> OutFile, person.displayname,"~",person.title,\ UnicodeEncodeError: 'ascii' codec … | |
though i'm calling pr() function in the subclass after calling the get_details() function(which assigns value to name) it doesn't print the current value of name. My question is if i want to print the value of name in the subclass what should i do???? I've tried in many ways using … | |
Here is my program: [I]#avg2.py # A simple program to average two exam scores # Illustrates use of multiple input def main(): print('This is a program to average two exam scores') score1, score2 = float(input('Enter two scores separated by a comma: ')) average = (score1 + score2) / 2.0 print('The … | |
ive got a sample game from college and i would like to open it a see how the game is but when i open it a blank window appears like ms dos and then closes i wonder if anyone could help out. ive installed python 2.5 and pygame. the code … | |
Having trouble getting code to allow the cars to go off screen then come back on the opposite side of the screen! for top to bottom and side to side! -The code i was trying was [CODE]if self.position > rect.top self.position == rect.bottom[/CODE] not sure if this is gonna work … | |
hi, how to implement the web services in python. I know, two protocols SOAP and WSDL are used in web services but i don't know how to use them to implement the web services . so can anyone tell me how to implement and develop the web services.. | |
Hello, I got a python script to send emails for my clients , that script is fired whenever i got new products in the store. i have like 4000 emails, but the server pops me an error when it hits the 1000 email. The error says the limit is 1000. … | |
Hi, I am having trouble producing my chart in the wx python gui. Keeps giving me an "ABORTED" message. Could you help if possible please? Code below : [CODE]import wx import cx_Oracle import datetime import wx.grid import csv import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab … | |
Hi, Newbie to this python lark so please forgive any silly questions - thank! Have installed various versions of python from 2.4 to 2.6 all with same issue. Current install is 2.5.4 AMD64 on XP64 platform. Python IDE doesn't do anything at all Python command line reports >> 'import site' … | |
HI guys, I am having some trouble with some basic python. I need to make a function that reads a document and divides each sentence up and counts the lenght of the largest sentence. this is what i have so far def linesize(F): c= 0 W= open("file.txt") X= W.read() Xlines … | |
Is it a good idea to help people with object oriented software design and code? I'm asking this because most of the code here is written using the functional programming, and all could probably improve a little or a lot with object oriented design and coding. My first doubt about … | |
Does anyone know how I can test if an object's type is a builtin type or a user defined type ? | |
As an amateur weekend programmer, I find that the easist way to learn how a program works is to step through the program using my IDE debugger. Using breakpoints is obviously the best way to step over code that doesn't interest me. My problem is that in some large programs, … | |
Hello, I am trying to make a program to calculate the payment for a babysitter like this: A babysitter charges $5 an hour until 9:00 p.m., at which point the rate drops to $3 an hour because the kids are in bed # the start and end times are in … | |
Hello, I am fairly new to python and in process of taking a class on Natural Language Processing and the language itself. I would sure appreciate any help at all on this current assignment. I'm having trouble trying to understand how I should start this program or how it all … | |
Hi All, I'm curious to know what is the difference as well as recommendation for two beasts :) Is it Panda or Pygame and why? | |
I have an array of numbers and want to print out how many of each number there are in the array. My method works but I was wondering what a more efficient way of doing this would be. I figure a loop would work but I haven't figured out how … | |
The modification code that i wan is: When: m = "i wan do something" i need a modification code when get m result... the code will automatic modify it become: "i[B]\\[/B] wan do [B]\\[/B]something" | |
Hi all – I am running Python 2.6.2 in a Windows XP Pro environment. I am trying to write my first python/cgi script combo and they must execute on a Linux websever. After surfing the web I realize that MS-DOS and Unix systems use different methods to identify end-of-line information … | |
I want to kno whether you can control an inpput by time in python. whether i can have a function which checks time n if input not given in that time then moves on? | |
I'm trying to read dynamically generated data from a website (it's being generated by javascript linked to server-side code, so i can't read the data from the html file returned by urllib). Is there a way to do this in python? Would using firefox macros be easier? Thanks for any … | |
I am wanting to create a program that everytime I run it, it gets the current playing tune in iTunes, and sets this as my Facebook status: "I'm listening to current_playing_song, corrent_artist." I have no idea how to start. can someone suggest how? | |
What is a static method and when should I use one? | |
I'm looking for some major help. I'm a decently new coder, taking a Python class independent study. I was writing a program for a two-player 21 game. (Like blackjack only I start with only one card... for some reason.) Only problem is, while the code doesn't seem to contain any … | |
I have two similar lists and want to create a new list with just the differences between the two. Is there an existing function or do I have to iterate with a for loop? | |
Hi, I want to make a program that can make asterisks around the text, so the output is something like this: Enter string: Hello World ************* * Hello World * ************* I do not want to use the multiplication technique (ex: "*" * 5), and I want to try using … | |
hello, i have some form which split by iframe. subject field is no probelm ,but content field was come from another iframe source.. so i can't input text in content's field.. im using PAMIE and win32com module.. i have to put text in 'contents.contentsValue' here. but i have no luck..anyone … |
The End.