Posts
 
Reputation
Joined
Last Seen
Ranked #213
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
100% Quality Score
Upvotes Received
24
Posts with Upvotes
24
Upvoting Members
18
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
19 Commented Posts
~205.31K People Reached
Favorite Tags
Member Avatar for sravan953

Hey guys, I want to make a simple program which calculates speed, distance and time. This is the code I used: [CODE] a=input("1)Find speed\n2)Find distance\n3)Find time\n4)Quit\n") while a!=4: if a==1: d=input("\nEnter distance: ") t=input("Enter time: ") print ("Speed: "+str(d/t)+"\n") elif a==2: s=input("\nEnter speed: ") t=input("Enter time: ") print ("Distance :"+str(s*t)+"\n") …

Member Avatar for Smartfitness33
1
14K
Member Avatar for OrcaSoul

I have a Python script getData.py that uses Mechanize, and runs fine under the interpreter. It was installed using easy_install - and the install seemed to indicate it was completed. The problem is, when I try to compile it using py2exe while in the folder of the script, and using …

Member Avatar for Gribouillis
0
605
Member Avatar for vegaseat

The idea of this thread is to help the beginning Python programmer with hints and helpful code. Please feel free to contribute! If you have any questions start your own thread! The creators of Python are very active, improving the language all the time. Here is a little of the …

Member Avatar for vegaseat
23
33K
Member Avatar for vegaseat

After you got the basics of Python under your belt, the best way to get a good knowledge of the language and improve your coding skills is to start on a project you are interested in. Maybe an image viewer, a slide show, computer generated random or fractal art, a …

Member Avatar for vegaseat
20
18K
Member Avatar for Steph102

Hi everyone. I am just learning Python on class so I am really at the basic. I need to write a python program that will flip a coin 100 times and then tell how many times tails and heads were flipped. This is what I have so far but I …

Member Avatar for Gribouillis
0
16K
Member Avatar for Mclovin

I'm struggeling with a problem which probably is farely easy to solve. I just cant find a simple way to do it. I want to be able to recognize the occurance of digits in a string. Lets say the string looks like: [CODE] file_Name1 = 'abc123de' file_Name2 = 'qwe987rty' [/CODE] …

Member Avatar for Lucaci Andrew
0
1K
Member Avatar for sillyboy

I usually listen to music while I'm browsing here, what are you listening to right now? EL-P - Fantastic Damage

Member Avatar for Helianthus
0
5K
Member Avatar for brandonhorst

Hey Folks. I'm writing a Python app using wx and I'd really like the ability to block the Capslock key at certain times. My current system has some unfortunate toggling of Hotkey Bindings and uses SendKeys, which results in some ugly keyboard light flashing and some seemingly random infinite loops. …

Member Avatar for zaphoenix
0
568
Member Avatar for adkool
Member Avatar for leegeorg07

Hi I was wondering if there has ever been/ are plans to be a python os and if it exists where could it be found? secondly i was wondering if python could be installed on windows mobile or android?

Member Avatar for SamarthWiz
0
163
Member Avatar for serkan sendur
Member Avatar for shadwickman

I'm not sure if this is the best place to post this, but I've noticed a large request for pyHook for Python 2.6. I had a solution to this in a recent thread [URL="http://www.daniweb.com/forums/thread203368.html"]here[/URL], but people are most likely going to miss that. I built pyHook's source for use with …

Member Avatar for bujisky
0
605
Member Avatar for serkan sendur

in our this months newsletter i saw that "essential" became a featured poster as well as a featured coder. if i compare number of his posts or reputation points or solved threads, i think Ramy or Scott(sknake) must be granted these before than him. I think the problem is, neither …

Member Avatar for jephthah
1
362
Member Avatar for jabbadabba

Here is my code atm [CODE]room_num = raw_input("Enter your room number: ") text_file = open("c:/roombookings.txt", "r") whole_thing = text_file.readline() if room_num in whole_thing: print "Room number found here is the information:" else : print "Room number not found." single_line = whole_thing.split('\n') for single_line in text_file.readlines(): if room_num in single_line: print …

Member Avatar for rueth
0
822
Member Avatar for shadwickman

Hello, I was wondering how to go about having a redirect of stdout with Python take effect in a C extension. My python script redirects sys.stdout into a file handle created with [i]open(...)[/i], but within the function in my compiled C-extension, any output ([i]printf[/i], [i]puts[/i], etc) is still given to …

Member Avatar for Gribouillis
0
590
Member Avatar for PetuniaRose

This is advertised as a forum for general discussion - so I have a small rant and would be all sorts of grateful to find out what others think. On the radio, on television and in the newspapers I hear much about "our leaders", "world leaders", "the G8 leaders", and …

Member Avatar for Ene Uran
0
962
Member Avatar for shadwickman

Hello! I have a question in regards to [I]malloc[/I]/[I]calloc[/I] and [I]free[/I] in C. What I'm unsure about is the "depth" (for lack of a better word) that [I]free[/I] operates to. I know that sounds strange so let this example hopefully explain what I mean: [code=c] #include <stdlib.h> int main () …

Member Avatar for shadwickman
0
123
Member Avatar for jbennet

Post a pic of yourself! Ive always wondered what people look like!

Member Avatar for hotmatrixx
0
248
Member Avatar for EAnder

I've noticed there is at least 1 thread regarding to artificial intelligence. I assume most people new and old to python would be interested in artificial intelligence and the even greater goal of artificial life. I personally do not know anything about them. If you have ever had any experience …

Member Avatar for lrh9
0
153
Member Avatar for BenOwns

Hey there everyone, i am wanting to do some college and do game design and programming. What languages should i learn, which ones would be the best? what is the main used language used for game programming now days?

Member Avatar for monjes
0
123
Member Avatar for shadwickman

Hello, I know you probably get quite a few threads asking this, but the DaniWeb search didn't pull up what I was looking for. So here we go: I have a page that I've made as "private" by including my access control script at the top. The access control script …

0
95
Member Avatar for vmanes

It took the guy 5 years to record this all over the world and put it together [url]http://vimeo.com/moogaloop.swf?clip_id=2539741[/url] Turn up the speakers :) It runs a bit over 5 minutes

Member Avatar for johnvitc
0
119
Member Avatar for klabak85

Hi all, I'm a completely new user of python (and by new I mean I started using it yesterday) but I've been programming for a couple of years now in other languages such as Java. I have a question to ask you all. So what I want to do is …

Member Avatar for jice
0
140
Member Avatar for lifeworks

Hi Ive been working with PHP, AS3 and some javascript for a while now, and want to move into something that allows me to develop desktop apps... I considered Java, but have become used to PHP's loose typing or whatever the technical name is, and so after some investigation Python …

Member Avatar for sravan953
0
154
Member Avatar for Merlin33069

I have a few nice ideas for a game that i would like to make, involving some, what i see as, pretty advanced coding requirements. all i would like is a site with some nice begginer tutorials, i think i can take it from there, also your favorite program or …

Member Avatar for BlackPhoenix
0
150
Member Avatar for shadwickman

Hello, I am currently trying to figure out some event stuff with Javascript. I have the page capturing all [I]onkeypress[/I] events by calling my function [I]keyPress[/I], and passing the event as an argument. The key presses get passed to a text field that I have on the page (even if …

Member Avatar for codejoust
0
156
Member Avatar for lllllIllIlllI

This is a simple program and all it does is fiddle with the registry and set the value of the desktop background to be the bmp file that you supply in the function. There are other things you can do with the windows registry, this is just one of the …

Member Avatar for shadwickman
0
244
Member Avatar for shadwickman

For some reason (this hasn't happened to me in the past), any wxPython scripts I package via py2exe crash on my other Windows computer (lacking a Python install). If I try running it on my other machine, I get an error message telling me to look at a log file …

0
86
Member Avatar for Zagoalie

Hello, i am fairly new to coding and i am just wondering what is required to make a Engine for a MMO RTS game. where would i start. keeping in mind server must we vary stable and not have problems with de-sinking. i am not attempting this on my own …

Member Avatar for MetalBlaze
-1
145
Member Avatar for shadwickman

Hello, I've just recently tried to make a class template whose constructor should be able to accept a variable amount of arguments of the class passed to the template. I have something like this, with the prototype inside the class definition, and the actual implementation of the constructor defined outside: …

Member Avatar for shadwickman
0
164