15,175 Topics
| |
Hello everyone, Im very new to python so I am having a hard time with it. I am trying to input a set 's' and have it spit out 'result' which would be a list of all computed subsets of 's'. I wrote the following code but its not working. … | |
hi, how to find and open the backup file .sql in mysql... | |
in my coding program, it says this line of code is wrong syntax: [icode]class Mainwindow()[/icode]. Why? whenever i add a line above it with just a semicolon (;), it says it isnt bad syntax. i copied it directly from a tutorial. WHY??? billy | |
[code=python] #!/usr/bin/python import os.path n = 10 allPositions = [] state = [] blackPairCap = 0 whitePairCap = 0 blackInaRow = 0 whiteInaRow = 0 row0 = [] row1 = [] row2 = [] row3 = [] row4 = [] row5 = [] row6 = [] row7 = [] row8 … | |
how do you add the output of a sum back into the input? eg. i = 100 print i/2 which will give you 50 (obviously) then i want to divide the answer by 2 and then the answer of that by 2 and so on ad infinitum thanks in advance | |
| hi again im looking to make a program that asks for a password and if that password is correct it will show a short story and if it is incorrect it will show so and then close. i want to include a backdoor code for my use and later on … |
| |
Hey there daniweb, I'm a web developer that is way out of my element here, hoping to find some help. I'm supposed to be converting a python/c++ library to linux for a coworker. I'm terrible at python and even worse at c++. This truly is not my element. After a … | |
I am in the process of writing and debugging a Python version of Mastermind. I have to use classes, so I have them all in their own files. I have them called and such. My problem now is that a part of the code likes to repeat itself ad infinitum. … | |
I installed it, and I'm trying to follow the tutorial but it won't work right. I made the test file, but when I type "python test.py" in command prompt it doesn't work. What am I doing wrong? | |
I've finished my first Python program that might have future use for something of importance, (rather than just [code]print('Hello, world.')[/code]), however, in order to distribute this script I need to convert my script to an executable file so they aren't forced to download Python to view the script in action. … | |
Good Evening All, I'm doing a small application using python. I want to check the special characters of the ASCII values with the given characters in the text box. if(string1.rindex!="char(32)" and string2.rindex!="char(32)") message("You have entered the special characters") else: check the values in the database and it follows. Thanks for … | |
hi, how to clear text in the text fields of the userid and password fields after click the submit button... | |
My code is fully functional, but I know that isn't the main point of programming. A few of my functions work in ways I know they probably shouldn't but I really just don't know how to fix them. Any other general pointers are appreciated as well, trying to learn as … | |
hi i got an error, " 'none type' object is unsubscriptable"... so how to avoid this error.. can u tell me. | |
hi, can u tell me how to remove blank spaces in login and password fields in python language. | |
It keeps giving me this elif syntax error in line 103 and I have NO idea where it's coming from. UGH!!! [code=python] #!/usr/bin/python import os.path #nxn board, in this case n = 10 n = 10 #will hold the positions similar to n-queens allPositions = [] #current state of board … | |
[url="http://www-128.ibm.com/developerworks/opensource/library/os-cherrypy/?ca=dgr-lnxw01CherryPy"]http://www-128.ibm.com/developerworks/opensource/library/os-cherrypy/?ca=dgr-lnxw01CherryPy[/url] [url="http://pyre.third-bit.com/pyweb/index.html"]http://pyre.third-bit.com/pyweb/index.html[/url] | |
Ok so I've picked up some literature and reference books for Python as it has started to interest me in the past few weeks. Now a project has rolled around at uni and I was wondering if I could use Python for what I need to do and then learn … | |
Hi all, I was searching for an IDE that is capable of Python GUI drawing, much like MSVS can draw GUI windows without actually having to code them manually. Atm I use NetBeans 6.5 for Python, but I can switch. Yeah, I'd prefer a Linux based IDE of course :) … | |
I just learned how to use py2exe to turn a helloworld.py script into a helloworld.exe script. But when I do it for something more complicated, I get an error. The exe is created, but when I run it I get an error: C:\Documents and Settings\Gulshan\My Documents\Python Scripts\dist>snake.exe snake.exe:85: RuntimeWarning: use … | |
Is it possible to get a single key press without having the user press enter? So, say if you were writing a game, say an RPG, to high WASD to move. Ie: [code=python]x = getkey() if x = "w" # blah blah blah if x = "a" # blah blah … | |
[code=python]fout = open( 'tf2 file test.txt', 'r' ) fout.seek(0) items = [] for index, line in enumerate( fout.readlines( ) ): val = line.split('=').strip() items.append(val) for item in items: print item [/code] For some reason it's telling me that strip is undefined? | |
i'm a school teacher writing an addition app using Python. It was going ok but i didn't like the editor so i found a new one(NetBean6.5). i copied/pasted my code but the NBeans editor is looking for a "main" module... i've done a little c++ so i understand what it's … | |
If I have /home/doriad/Scripts/Python/ and inside I have a bunch of folders, ie Geometry, Math, Other, etc that each contain scripts (.py files), is there a way I can just add /home/doriad/Scripts/Python to PYTHONPATH and then somehow [code] from Geometry/Spherical import * [/code] rather than having to add every subdirectory … | |
k, so I'm sort of a python newbie. And a unicode newbie too. On the webpage: [url]http://www.mangaupdates.com/series.html?id=1580[/url] I want to be able to scrap the following line (html): [code=html] Associated Names</b></div> <div class="sContent">ロザリオとバンパイア<br>吸血鬼女友<br>로자리오와 뱀파이어<br>Rosario + Vampire<br>Rosario+Vampire<br> [/code] how ever, when I scrap it. all the asian character a returned like … | |
I have one related question is Jython going to replace Python in a few year ? | |
Hi, there With a lot of help in this forum, I strated to use Python to accomplish something. Here I am looking for guide about how to improve my code speed. This code is to determine the normal direction of a polygon with four points. Every four points have 6 … | |
I am considering using python to write a simulation program to display the motions of about 10,000 2d disks. The program doesn't need to calculate the positions of disks. It just reads the result file and displays disks on the screen. I wonder whether python has this ability for rendering … | |
using - python 3, python shell i've tried looking online and in a couple of books, but i can't find an explicit example of creating an exe. could one of ya'll share the steps? ty, frank |
The End.