15,190 Topics

Member Avatar for
Member Avatar for i_saw_some

does anyone know how to have IDLE or Ipython display a string with line breaks as multiline text in the display rather than a big string wrapped around with '\n's? Instead of [code] return false;\n }\n\n function validPeriod() {\n for (var i = 0; i < periods.length; i++) {\n [/code] …

Member Avatar for i_saw_some
0
84
Member Avatar for xRuP7uR3x

Greetings everyone. I have been working on a script to convert a number from any base to any base up to base62. The user supplies the original number, the starting base, and the end base. My problem arises when converting the fractional part from base10 to the end base; the …

Member Avatar for jrcagle
0
153
Member Avatar for StudentMark

Hi, I'm having some problems and i'm hoping someone can help. I'm using python 2.4 and have the pywin library installed. I have a listbox which when I click on a description of a product displays the whole record, so for example I select "bike", and press a "select" button …

Member Avatar for woooee
0
265
Member Avatar for drjekil

hi I am from chemistry background and no idea about programming,trying to learn biopython.Can u tell me pls which books explain things very simply? i will be greatful thanks in advance.

Member Avatar for bumsfeld
0
71
Member Avatar for relm86

Hi I just started to learn to program and I choose python cause I heard it was easy to learn. But I already ran into proably a very stupid problem that a only a noob like me would need help with. I'm using idle to program with in windows and …

Member Avatar for ZZucker
0
108
Member Avatar for foreverold

I'm attempting to create 5 card stud poker game, I'm almost in the final step of it but I am not understanding how to implement it. Evaluate each players hand to determine winner(This is where my difficulty reside at the moment) Sorry if the code is messy and long, still …

Member Avatar for BearofNH
0
199
Member Avatar for strictlycustom

I need to have 3 functions in addition to the main. I got a response before except it didn't have 3 functions. The 1st function asks the user how many hours were worked and the pay rate and returns this information to main. The second function calculates the regular hours …

Member Avatar for strictlycustom
0
81
Member Avatar for sanoski

OK everyone, this is probably gonna be a stupid question, so brace yourself. I'm brand new to all this. I'm really not having a literal problem, but it's driving me nuts because I don't know what it is. Forgive me if something like this has been discussed before. I just …

Member Avatar for ZZucker
0
108
Member Avatar for StudentMark

Hi, I'm really struggling with coursework for a university project, I need to be able to link to an Microsoft Access database and read and write to it using a Tkinter GUI, so far I have the following. def do_select(): global list_box, cursor item = list_box.curselection() name = list_box.get(item) stmt …

Member Avatar for StudentMark
0
106
Member Avatar for Scala

I'm working on a tic-tac-toe game, and run into a problem. My problem lies in lines 24/25 and 30/31. I want to take the returned dictionary from the convert_to_yx() function and assign the keys and values as the x and y of the game_grid I have on line 1. I …

Member Avatar for woooee
0
83
Member Avatar for gelcode

EDIT: Apologies... user error strikes. Tis the way of the newb. Nothing to see here, move along. I have a dict with the following pairs: [code]object = {'v1': 1, 'e5': 6}[/code] If I set a variable using this data and print it: [code] var = object['v1'] print var [/code] I …

Member Avatar for vegaseat
0
88
Member Avatar for fongoos

I am new to programming and after a month or so of googling, I have decided to learn Python. Is this a good time to learn the language or people will soon jump ship since JAVA is now open source? By open source software, I understand that the code developed …

Member Avatar for linux
0
815
Member Avatar for yl388

Hi, everyone, I am a new user to Python. Now I have a webpage by "urllib2.Request" and "urllib2.urlopen(request)" method, but since there are several buttions in the page, how could I use "click()" to click the buttion I want? Cheers! Edward

0
36
Member Avatar for fk08

hey, i ve got an array of size 3500x300, when plotting with imshow (from pylab) then imshow takes the size of the array to build the axis. that means, my y-axis is 3500 long and the x-axis 300. is there any posibility to define 2 axes in an extra array, …

0
45
Member Avatar for 1337455 10534

Hi, I'm a high-school freshman that wont be taking a programming class until next year. I am proficient at Python, and they decided to put me in AB Programming, which is Java. When I first started programming on a z80 TI-83+ with BASIC, I set out to make my life …

Member Avatar for Ezzaral
0
94
Member Avatar for dabear

Trying to find a code to convert any base to any base, (the user specifies). I can convert numbers well, under base 10. The numbers mixed with letters confuses me. Do I read it as a string or integer? Should I use a list or dictionary? My brother is trying …

Member Avatar for ZZucker
-1
76
Member Avatar for Acidburn

Hey there, I've got a script in another language and I've set a writer from the script to python. Now I'm trying to send data back the other way... ie python -> to my script. However I've got nothing to reference in python, and i'm clueless. Can anyone provide assistance? …

Member Avatar for woooee
0
94
Member Avatar for nish88

hi everyone...... am designing an interface for security purposes where a user is allowed to enter a password to gain access... i want when password is entered its ********** that appear on the text box instead of password secret itself so that if someone is looking at the screen he …

Member Avatar for woooee
0
166
Member Avatar for scru

Is there a way to detect the internet browsers "registered" on the system my script is running on, and if possible get the location of the browser's executable? I don't mind if it requires branching the code by platform. And frankly, I don't mind if you give me a response …

Member Avatar for woooee
0
152
Member Avatar for IU34

yeah, I'm just keeping this thread open because I have another wrinkle. In my code [code=python]def prompt_house(): global gold prompt_hou = raw_input('>') if prompt_hou == 'examine table': print '''There are a lot of car magazines here. You flip through them and find 5 gold.''' gold = gold+5 prompt_house() [/code] (or …

Member Avatar for IU34
0
156
Member Avatar for renabada

1. (a) A positive whole number n > 2 is prime if no number between 2 and (inclusive) evenly divides n. Write a program that accepts a value of n as input and determines if the value is prime. If n is not prime, your program should quit as soon …

Member Avatar for Paul.Esson
0
367
Member Avatar for drjekil

I am totally new in biopython and its my first program.so may be i am asking stupid question. I am working with a text filelooks like this: #NAME AA TOPO ACCESS DSSP STRIDE Z-COORD 1lghB A i 79.8 H H -24.58 1lghB V i 79.6 H H -22.06 1lghB H …

0
77
Member Avatar for xRuP7uR3x

Hello again. Before I begin I would like to offer my heartfelt gratitude to the DaniWeb community; this website truly is a wonderful resource for a new programmer such as myself, and the help and advice that I have received have been incredibly useful. I am currently working on a …

Member Avatar for dabear
0
72
Member Avatar for drjekil

I am totally new in biopython and its my first program.so may be i am asking stupid question. I am working with a text file.Every line in that file represents one amino acid,which has some value.But i need to separate those lines which has a value between 10 to 22.how …

Member Avatar for vl4kn0
0
137
Member Avatar for dluc8461

[code] Would anyone be interested in writing a small Python script for me. Approx: 90 lines of code it is required for (Blender Python). Your help would be much appreciated. More an Edit than anything. Existing Code below needs to be edited so that the rightKey and the leftKey will …

0
48
Member Avatar for Jasper11

Hey guys, im new here, Ive been learning python for the past month or two and have run into a bit of a problem. I have read a previous post on this forum with a similar problem. There answer was to flatten the list and then search it. This approach …

Member Avatar for Jasper11
0
8K
Member Avatar for clalexa2

I am trying to save a picture from a website ever hour. Can this be done? can anyone help me out?

Member Avatar for clalexa2
0
82
Member Avatar for bachmabt

This seems like a very simple process, but I cannot get the data out of the loop: I have a data file "slink.txt": [CODE]88 10112213 33332332 22011220 23110122 21231102 12222321 32131132 10023232[/CODE] I am trying to store the numbers in a 2 dimensional array: [CODE]f = open('slink.txt', 'r') rows = …

Member Avatar for bachmabt
0
140
Member Avatar for IU34

[URL="http://corvettecraz92.pastebin.com/f59db1508"](new code)[/URL] so, my new error message is 'local variable 'gold' refferenced before assignment.' now what?

Member Avatar for IU34
0
107
Member Avatar for IU34

yeah, another one...but this time in python! yay, more errors! :) first off, [URL="http://corvettecraz92.pastebin.com/f65e1cd3c"]here's the code..[/URL] (based off of chris99's code...the only example i could find for a text adventure game!) Now, my problem is where it says [code=python] elif prompt_p == 'examine sign': print """Behold the mysterious grating! For …

Member Avatar for IU34
0
282

The End.