Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for rbushlow

I have the following python code to access a MySQL database: [CODE] #!usr/bin/python # server_version.py - retrieve and display database server version import MySQLdb con = MySQLdb.connect (host = "localhost", user = "username", passwd = "password", db = "test") cursor = conn.cursor () cursor.execute ("SELECT VERSION()") row = cursor.fetchone () …

Member Avatar for rajasekhar1242
0
177
Member Avatar for Xydric

Hi Guys and Gals! I come to you today requesting assistance! Let me explain what I am trying to do first, and then I will show you my code. The purpose is to read a list of regular expressions in from a text file (one regex per line, only about …

Member Avatar for jlm699
0
108
Member Avatar for TheManual

I have managed to create a custom sized grid which prints correctly but when I try and print X or 0 a new line is started. Please see the "test" result below. [code] def createBoard(): global rows,columns,board rows = input("How many rows (more than 4)? ") columns = input("How many …

Member Avatar for TheManual
0
229
Member Avatar for xm1014

Hello everyone, I'm learning Python and I have a few questions about Dictionaries and sorting them by a value other than the key. Lets say, for example, I have a Dictionary full of data that needs to be sorted on the 3rd value instead of the key. How would I …

Member Avatar for vegaseat
0
441
Member Avatar for sneek

Hi, may anybody tell me what "initializes the interpreter" mean in detail? Does this function starts a new process or thread of the python interpreter in the background or what does this call do?? Hopefully somebody can give me a little hint :) Jonny

Member Avatar for sneek
0
301
Member Avatar for pyprog

I have a dictionary like {"a":["b", "c", "d"], "b":["h", "i", "j"], "c":["k", "l", "m"]. I need to write a function that returns True if a requested key has requested value. Also, if "a" has "b" and "b" has "h", "i", and "j", then "a" has "b", "c", "d", "h", "i", …

Member Avatar for masterofpuppets
0
130
Member Avatar for Mattpd

If I have two lines of text: HOOK HOOK HOOK what is the syntax to grep just the first line without the second? and the second without the first?

Member Avatar for Xydric
0
119
Member Avatar for Onkel Bob

I am new to programming (but not to the concepts) and I need to process some .csv files. Here's what I have: The files containing Cartesian coordinates, XYZ of various "polygons." (They are cell perimeters of a mouse embryo) The polygons are in quotes because they are not closed, and …

Member Avatar for Onkel Bob
0
101