15,185 Topics
| |
Hi everybody. I have a question about the best way to retrieve a list of possible source values from the & operator without checking every combination between the range required. The basic problem I face is I have [B](a&b)=c[/B] I know the values of b and c but need to … | |
Hello friends. In my project I need to know if some one is online or offline. and other problem is that some one are online but are invisible. At all how I can find the users state? for example users of yahoo or google. I realy know nothing about this … | |
Hi everybody, I'm totally newbie to python I've seen some tutorials and think that is an easy to learn language but I couldn't figure out the real function of scripting language I've read some brief notes about the function being to control an existing application . But I couldn't understand … | |
I've been messin with python for little under a month now. I've come across one of these sample questions that make you think, stating to compute and print a table of Celsius temperatures and Fahrenheit equivalents ever 10 degrees... well i guess the main thing is i need help trying … | |
Hi All I'm getting very odd behaviour when using file.write(variable) - what happens is that if I print out the variable using the print function I get this: [ICODE]4CE1FFC64101843801[/ICODE] ... which is what I expect. However, when I try to write this to a file (using the variable 'valid' to … | |
I'm working on a calculator in python. Introductory college course, so I know some stuff, but I'm far from being an expert of any sorts. This is a scientific/graphing calculator, so I'm parsing a whole string of input. Say the user inputs integ(3*x+3,0,1) (integrate 3x+3 from 0 to 1). My … | |
I'm pretty much a complete beginner. I'm trying to get a 'timer' or 'clock' that pretty much just counts how long you have the window open by using a loop that adds 1 to "a" for every second, and adds 1 to "b" for every 60 seconds (while subtracting 60 … | |
I used someone else's code as an example to start my game and move my character around. I understood the majority of it but there's a couple of parts I don't get. I want my character to move Up when the up arrow is pressed, but smoothly! My code right … | |
Hi, I have just started python as after a chat with a friend I have discovered it would be the most suitable language for my latest project. The problem I have come across is I need a sha1 function written in python. I don't want to use the built in … | |
I am an absolute beginner to programming. I started a programming course recently. I have a task which basically involves coding a first fit algorithm. The task is to design and implement a program to pack items into containers using first fit algorithm. A container has an arbitrary capacity. The … | |
Hey forum, I've been interested in creating Python scripts to work with iTunes, and I recently learned about the win32com library, and more specifically, win32com.client. My problem is that I lack knowledge of the iTunes.Application properties and methods. I've done multiple Google searches in hopes of finding a knowledge base … | |
Is there an equivalent option to curl's -d option for pycurl? What I want to do is specify multiple parameters in the URL for instance this does not work: [CODE] USER = aurawind2k PASS = XXX STREAM_URL = "http://status.dummy.com/status.json?userId=12&page=1" class Client: def __init__(self): self.buffer = "" self.conn = pycurl.Curl() self.conn.setopt(pycurl.USERPWD, … | |
Can someone please help fix this program? I'm pretty new in Python. Every time I run this program it says : Traceback (most recent call last): File "E:/Python/delin.py", line 38, in <module> discounted_total = regular_total - full_discount TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' def find_discount(total): if total … | |
I have a home work assignment to make a photo gallery using the cImage module. It is supposed to have a forward and a backward button, and display images named picture0, picture1, picture2... so that after you click the forward button on the last picture it will go back to … | |
I'm trying to make a simple email sender used for submitting problem reports on a program I am writing. The sender doesn't need to have changeable sender and receiver address, the address the program will use for sending the email will be the same always (for this example, 'example@example.com') and … | |
Dear Friends I am facing some problems in deploying my application for lower version of qt. Basically i want to generate scripts for my application and I have chosen pythonqt for this purpose. Pythonqt has the problem with lower version of Qt (Qt 4.5.2) and also with Higher version of … | |
Hi I just started with python, and trying to implement some system admin tasks and running into some rough. Basically I need to do some task on whichever share exists on their corresponding server. eg Server A has shares 1,2 and 3 Server B has share 1 and so on. … | |
ok well I'm working on making a dungeon explorer and I can't get images to work...so far I have this[CODE] from Tkinter import * class App: def __init__(self, master): frame = Frame(master) frame.pack() canvas = Canvas(frame, width = 225, height = 225) canvas.pack() gif1 = PhotoImage(file = 'Fhall.gif') canvas.create_image(0, 0, … | |
hi guys n girls im making a list of the biggest files on my computer i have got most of the coding done but i have hit a brick wall with the sort function. i can sort the size or the file name but as they are both in the … | |
D is a list containing some words. D=[word1,word2,word3......] E is a list containing combinations of any two words in D ... E=[(word1,word2),(word7,word1)....] How can I implement the following in python: [CODE]A0[x]=1 for all x in D # This is actually Ai. when i=0, it becomes A0 B0[x]=1 for all x … | |
Hi! Have some problems with my code again... I have a list "playerCardList" containing six elements where you pick out three of these. The three elements you pick should be removed from the bigger list "cardList" containing 81 elements. And after that three new elements from "cardList" would be put … | |
Write parts 1 (convert string to lowercase) and 2 (tokenize string) of that code and incorporate the function below. Use the string.split function. Get the code to work as a cohesive unit to convert strings like "two hundred sixty two" to numbers like 262. This is basically what I need … | |
The program that you will be writing will be called Books.py. * Open the file for reading * Create an empty dictionary * Read line by line through the file * For each line strip the end-of-line character and remove punctuations. Replace hyphens (-) with blanks. In the function parseString() … | |
Hi! When I print the six card I would like the "player" to be able to pick three out of these cards. Does anyone know how to do this? Do I create a new list and then append the cards to that list? Very thankful for any help! Here's the … | |
Hello, I am in the middle of implementing a TFTP client using python though I have come unstuck on a client timeout feature. I am trying to implement the following feature, quote taken from the RFC: "If a packet gets lost in the network, the intended recipient will timeout and … | |
I need to make the user ask for an English sentence and then make it produce the spanish translation of it from a given data base which is given in list form. I also want the user to keep asking for a english sentence until I type in a character … | |
Hullo, I’ve been banging around all week (after re-install of Snow Leopard) trying to get python configured with MacPorts, OpenCV, and PyGame (at least). I’ve got python_select properly configured and seemingly working, but I can’t seem to get any of these modules including all at once. Currently I can include … | |
Hi can anyone tell me how to remove empty keys in the following dictionary d={'a':[],'b':['1','2'],'c':[]} I want it to be d={'b':['1','2']} I tried this. But its showing error. I know its wrong to change the size of a dictionary during iteration. But is there any other way? [CODE]>>> for x … | |
as part of a game I'm making I decided to make an importable/executable file to shorten the code and I was wondering... [CODE]def view(N,W,E,S): if info_dict["direction"] == "north": if N != 1: pic = fwall wall = "yes" if N == 1: if W != 1 and E != 1: … | |
how do i get round this error then because i have a mixed list of file names and their size i need it sorted by the size and i get errors trying to sort the size on its own because of they way it pairs the file name and the … |
The End.