15,175 Topics

Member Avatar for
Member Avatar for kat12

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 …

Member Avatar for vegaseat
0
1K
Member Avatar for Jehanneman

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 …

Member Avatar for ramwins1
0
727
Member Avatar for mohankumar554

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.

Member Avatar for jlm699
0
88
Member Avatar for nicsmr

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 …

Member Avatar for vegaseat
0
127
Member Avatar for python.noob

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 …

Member Avatar for AutoPython
0
216
Member Avatar for simpatar

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 …

Member Avatar for The_Kernel
0
164
Member Avatar for srk619

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 …

Member Avatar for snippsat
0
93
Member Avatar for AnonSurf

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 …

Member Avatar for AnonSurf
0
160
Member Avatar for mohankumar554

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..

Member Avatar for lightspeed1234
-1
89
Member Avatar for fferrandini

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. …

Member Avatar for Gribouillis
0
190
Member Avatar for hdk

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 …

Member Avatar for hdk
0
401
Member Avatar for rui_esi

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' …

Member Avatar for rui_esi
0
2K
Member Avatar for Pythonn

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 …

Member Avatar for masterofpuppets
0
101
Member Avatar for lrh9

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 …

Member Avatar for Gribouillis
0
93
Member Avatar for Gribouillis

Does anyone know how I can test if an object's type is a builtin type or a user defined type ?

Member Avatar for Gribouillis
0
167
Member Avatar for OldGrantonian

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, …

Member Avatar for OldGrantonian
0
80
Member Avatar for rociel

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 …

Member Avatar for snippsat
0
472
Member Avatar for alxw1711

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 …

0
42
Member Avatar for Stefano Mtangoo

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?

Member Avatar for Stefano Mtangoo
0
124
Member Avatar for kiddo39

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 …

Member Avatar for kiddo39
0
117
Member Avatar for denniskhor

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"

Member Avatar for lukerobi
0
78
Member Avatar for redpython

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 …

Member Avatar for redpython
0
135
Member Avatar for lakshaypandey

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?

Member Avatar for masterofpuppets
0
60
Member Avatar for djames101010

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 …

Member Avatar for ov3rcl0ck
0
76
Member Avatar for tomtetlaw

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?

Member Avatar for ov3rcl0ck
0
108
Member Avatar for mahela007
Member Avatar for PixelHead777

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 …

Member Avatar for PixelHead777
0
205
Member Avatar for Ene Uran

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?

Member Avatar for Gribouillis
0
2K
Member Avatar for saikeraku

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 …

Member Avatar for marecute
-1
108
Member Avatar for james27

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 …

0
99

The End.