15,185 Topics

Member Avatar for
Member Avatar for lycanickel

Hello everyone I am of course new to ppython and I am having trouble joining an integer variable and a string without a space in between them. Lets say my variabe was an integer of num = 121 and I wanted to print the proper ending of "st". which would …

Member Avatar for Gribouillis
0
371
Member Avatar for krystosan

i read on the setuptools page that they do not have setup for win 64 bit and instead their is ez_setup.py which i downloaded and from command prompt typed `python ez_setup.py` then i checked back in the *D:\Python26\Lib\site-packages* directory their is a new easy-install.pth,setuptools.pth,setuptools-0.6c11-py2.6.egg,andd setuptools-0.6c12dev_r88846-py2.6.egg file, now from python interpreter …

Member Avatar for krystosan
0
210
Member Avatar for TeaAnyOne

12347 10000 secretary James Harrison 12348 20000 secretary Jade Powell 12341 40000 consultant Adam Johnson Hi, lets just say that the text above is a text file. How would I go about searching and printing the rows with 'secretary' only? Or any other value? When the user is asked to …

Member Avatar for TeaAnyOne
0
178
Member Avatar for chophouse

I just moved to a new server and installed Python 3.3. On my old box i was using Python 3.2. Now my scripts that import pymysql won't work, saying the module doesn't exist. Wher do I download this from? I'm on Win Server 2008 R2 (on both boxes) Thanks

Member Avatar for chophouse
0
103
Member Avatar for slasel

Hi, Is it possible to embed something made with pygame, like some sort of animated display or bouncing ball... into a Tkinter made window, with tkinter buttons/frames etc... If yes, then may you please tell me how can i do that? Thanks

Member Avatar for vegaseat
0
232
Member Avatar for shills300

hi guys, i was wondering if anyone knew how to make a color wheel in python using turtle. i'v searched all over the web to see examples but haven't had any luck. i am a beginner programmer and it's very confusing to say the least so any explanations would be …

Member Avatar for vegaseat
0
3K
Member Avatar for slasel

can someone please help me I am facing a problem; I want to draw an image in the canvas depending on the value of the IntVar called position however I get an error; Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__ return self.func(*args) …

Member Avatar for vegaseat
0
269
Member Avatar for ahmad.alfananda

hey guys I need help! I need a calendar program in pyhon!! without import module. can you hlp me??

Member Avatar for vegaseat
0
71
Member Avatar for vegaseat

Just a small example showing how to draw circles with PySide (public PyQT). I used LightShot to capture the display, which gives you a link to the picture. http://prntscr.com/kw6b6

2
9K
Member Avatar for bobys

Hello, I would like to know if there is any wway to change the Title of an input box( Left Upper Corner). Lets say we have the input box: x= input("blah blah blah") if we run that the title of the input box would be like "Python input" or something, …

Member Avatar for bobys
0
327
Member Avatar for MissAuditore

*Hi, I am trying to plot a 3D surface plot. I have a list of x,y,z values. They are all of different dimensions. y1 y2 y3 y4... x1 z11 z12 z13 z14 x2 z21 z22 z23 .... x3 ................. x4 x5 . . . etc..* import csv from mpl_toolkits.mplot3d import …

Member Avatar for dashing.adamhughes
0
266
Member Avatar for aaron.jensen.923_1

Write a correct, well-structured, well-documented Python program to create a list of lists containing student information. You are to create one master list whose elements must be lists containing elements for the student’s first name, last name, major, credit hours completed, and quality points earned. (The organization of the master …

Member Avatar for aaron.jensen.923_1
0
233
Member Avatar for krystosan

I started learning PyQt from zetcode, as far as i know sys.argv reads in the parameter from coomandline and first being the name of file itself, so if sys.argv is a list then what being passed to QtGui.QApplication() in def main(): app = QtGui.QApplication(sys.argv) ex = Example() sys.exit(app.exec_())

Member Avatar for Gribouillis
0
2K
Member Avatar for biscayne

Trying to go thru the contents of a table with the following layout indexfield1,art1,art2,art3,art4 In this table indexfield and art1 are always filled art2, art3, and art4 can be empty. In pseudo-code this is what I want to do: for each art of table where indexfield = x: do bladibla …

Member Avatar for Schol-R-LEA
0
820
Member Avatar for biscayne

Does anyone have experience with calling a Python script to parse data into a Scribus template and generate a pdf file ? I know about the ScribusGenerator by Ekkehard Will, which works pretty well, but I have a tailormade python script that combines data from 2 csv tables. Would it …

0
124
Member Avatar for eternalcomplex

Hi, I'm learning python and I just started to learn about classes. To get a handle on this, I decided to make a black jack game and create 3 classes: deck, hand, and card. I created a card class, but I am not sure how I would implement it in …

Member Avatar for TrustyTony
0
475
Member Avatar for don.davis.773

so I have written a acript that logs into google calendar and pulls the next weeks events and stores them in variables. I am stuck at how to get these variables and put them into a html page does anyone have any ideas? I am running the script once a …

Member Avatar for Gribouillis
0
202
Member Avatar for Aoi.Ragnarok

The program I'm making is a program that will display a word in one language and ask for the translation in another. It will then display if it's right or wrong. However, when I test to see if it works, it will display all of the versions of Incorrect, even …

Member Avatar for woooee
0
151
Member Avatar for hisan

Please let me know how to sort the list of String in either ascending / descending order without considering special characters and case. ex: list1=['test1_two','testOne','testTwo','test_one'] Applying the list.sort /sorted method results in sorted list ['test1_two', 'testOne', 'testTwo', 'test_one'] but the without considering the special characters and case it should be …

Member Avatar for sneekula
0
515
Member Avatar for biscayne

I'm trying to go thru a file with product codes and rateband prices and quantities (productcode, pricea, qtya, priceb, qtyb, pricec, qtyc, priced, qtyd, pricee, qtye). For a certain group of up to 4 productcodes I need to sum up the values of the price cells after testing the qty …

Member Avatar for biscayne
0
310
Member Avatar for stevthym

Hello, I have the following Python Code. I would like to replace the block2=(letter1<<16) + (letter2<<8) + 32 using array module. ANy help is appreciated! for letter1 in range(65,90): for letter2 in range(65,90): ptext=chr(letter1)+chr(letter2)+chr(32) block2=(letter1<<16) + (letter2<<8) + 32 ctext=pow(block2,e,n) table[ptext]=ctext

Member Avatar for sneekula
0
218
Member Avatar for crashhold

Hello developers, I have written this code which walks through the html files in a directory and fetches event and date information and print it on screen. I want this data to be stored in a database. I have installed mongodb and pymongo module. How can I insert the output …

Member Avatar for Gribouillis
0
321
Member Avatar for crashhold

Hello Developers, I am a beginner in python and need help with writing a regular expression for date and time to be fetched from a html document. In the following code I am walking through the html files in a folder called event and printing the headings with h1 tag …

Member Avatar for crashhold
0
319
Member Avatar for Aiban

Hi There. I joined here some three years ago when i created my ONE and ONLY Python program that actually functions as intended *YAY*, it's a little ugly and i've decided to return and learn more, improve it and maybe start up some new projects. I'm a little confused as …

Member Avatar for Aiban
0
223
Member Avatar for TeaAnyOne

Hey! Just wondering how you make the code keep asking for a correct file input until a correct file is inputted, rather than just exiting the program when incorrect? f = input("Enter a file name: ") try: infile = open(f, "r") except: print("File not found:", f) text = infile.read() print(text)

Member Avatar for TeaAnyOne
0
121
Member Avatar for Cosmo_Kramer

3 1 100 80 2 100 70 3 110 60 4 140 50 5 140 200 6 230 10 7 235 200 8 240 20 9 240 30 10 240 30 I am inputting the above in a simulator that simulates people in line at a store. The 3 means …

Member Avatar for Lucaci Andrew
0
80
Member Avatar for kevin.deasis.1

My problem with my TIC TAC TOE game is that it does not save end the game when someone has won if they have more than four moves. THe method of my code to check if someone has won is that it goes over a list of list. The list …

Member Avatar for woooee
0
400
Member Avatar for dean.ong.14

i want to make sure that people can quit in the middle of the game and the question is random not in order... please help me.. # make input equal to Python3 style input even in Python2 import random try: input = raw_input except: pass question =" " print("Welcome to …

Member Avatar for dean.ong.14
0
451
Member Avatar for Cosmo_Kramer

Hello all, I was just wondering if anyone has code snippet for a function that is a multi-queue.....this is for python 2.3 or 2.4 I think so it has to be a bit primitive. The program is simulating people at a store arriving at the checkout, the input from a …

Member Avatar for Cosmo_Kramer
0
214
Member Avatar for dean.ong.14

I stuck at the part about how many question they want for their game.This is the requrirement. Write a program for an application that let the user host a quiz game. The application will have a collection of questions with short answers. The program should ask the user how many …

Member Avatar for dean.ong.14
-2
172

The End.