15,181 Topics
| |
Hi friends !! I'm neophite about python, my target is to create a programa that find a specific string in text file. How can do it? Thanks fel | |
1. Is it possible to draw a border line around a table and/or a cell 2. Is it possible to draw a color to the background of a label. 2bis If not, is there an other element that can have background colors 3 How can I set the default height … | |
1. I need to make a program that creates a list that contains the first n perfect squares. All I know is that it starts with n = int(raw_input("How many squares? ")) and ends with print squares An example of how this program should work is: How many squares? 5 … | |
Newbie Here Edit: This is not homework, I am a chemical engineering student and a math minor. I'm doing programming on the side to help me automate certain calculations later in my career. Also always had a healthy interest in programming. I just read the not doing homework for people … | |
------------------------------------ ----------- --------- ------------------------------------ ----------------------------- ------- PRODUCT KIT TYPE STATE MAINTENANCE REFERENCED BY ------------------------------------ ----------- --------- ------------------------------------ ----------------------------- ------- HP I64VMS ACUXE V6.40-11P09A Full LP Installed HP I64VMS AVAIL_MAN_BASE V8.3-1H1 Full LP Installed HP I64VMS OPENVMS V8.3-1H1 HP I64VMS CDSA V2.3-306 Full LP Installed HP I64VMS OPENVMS V8.3-1H1 HP I64VMS … | |
Hello all. My name is Younis, I am a computer science newb. I occasionally browse this website reading some fascinating threads. I have a simple project at hand which i am finding the extra credit portion to be somewhat difficult. The project is very simple, the project takes a number … | |
Hey im new here to excuse the nubneess i wanted to make a family tree thingy and wanted to do it in python i wanted to make a way so that it could read a text file and auto add a new entry called summary which would include the initials,yr … | |
Hi, I am reading data from a file. The data is mostly text, but has a small bit of binary in it, as well as a linefeed at the end of every block of text. Can Python read all of it and write it to another file, while not changing … | |
I swear, those things are like shurikens in these masses... I'm trying to make a loan calculator in python, as part of an assignment. I'm basing it off of two things. 1: [URL="http://www.efunda.com/formulae/finance/loan_calculator.cfm"]This website, which contains 3 different calculators.[/URL] 2: [URL="http://www.efunda.com/math/num_rootfinding/num_rootfinding.cfm#Newton_Raphson"]The link from the second calculator (my current pain)[/URL] I'm … | |
Hi all, I have found some examples on the net but was not able to use the technique.. here is what I would like to do. tst = 2 numOfDigits = 3 # change this to tst2 = 002 Any help is appreciated. Thank you. [QUOTE][url]http://www.webdotdev.com/nvd/content/view/938/99999999/1/2/[/url] >>> print “z is … | |
hi, i want to be able to draw two eyes with are exactly the same in radius and colour etc next to eachother. So when i open the window the pair of eyes are there in the centre. I have managed to get one eye but i dnt have a … | |
Hi everyone, hope someone can give me some hints about my problem. I write a program that read users input through command line(args). This input i put it as a list. User type number that they want separated with comma [CODE] --number 1,2,3,4 [/CODE] The next process is to read … | |
So I did some research and learn that you use the sys module to set the path for 2.5: import sys sys.path.append('usr/local/lib/python2.5/site-packages/') And that would set the path for 2.5 permanently, but if i do the samething for 2.6 or 3.0, it will not work the next time I open … | |
I need to write a function which has 2 parameters height and width and outputs a rectangle of "#" ssmbol of the appropriate dimensions. so for 93, 4) should result in the output #### #### #### but i dnt unserstand how to use the loop in this. I have only … | |
Hai guys, A very good morning to you.Currently i'm using python3 in linux. In windows tkinter is working fine but in mandriva linux spring 2009 it fails to import. Can you please tell me step-by-step on how to fix this issue? In python3.1 home page the description is not clear … | |
Hello, I would like to know hot to pass address reference to ‘c’ function through python. I am using swig for ‘c’ anf python interfacing Interface file : stud.i *************************************************** %module stud %header%{ #include "stud.h" %} %include "stud.h" %array_functions(char *,charp ); %inline %{ extern int parse1(char *,char *,char **); %} … | |
For whatever reason, Python on OS X sets the default file directory to the "~/Documents/ " folder. It's a bit annoying because it makes my documents folder massively cluttered with python files as well as files from my computer. I'd like to change it simply by adding a "Python" folder … | |
Okay, the encryption algorithm idea was stupid. But I still made an encryption program. I got the absolute most possible frustrating situation. The program doesn't work in the console window. It spits out a giant error (probably recursion judging how many errors it got), but it DOES work in IDLE. … | |
[code] #Credits: #Nevets04 #Fallen #Uber1337 #Farout import os List = [] z = int(raw_input("How many words in your list?: ")) os.system("clear") for x in xrange(z): List.append(raw_input("")) List.sort(),os.system("clear") print "\n".join(List) [/code] | |
I want to be able to output the area of the circle and the cirumference of the circle to the user. so the output is to be "the area of the circle is... and the circumference of the circle is..." and it has to be to 2dp. the question says … | |
I am totally new to programming and could use some help. I am trying to write a while loop in python that could execute this equation but in a while loop type function. the equation is n * (n + 1) / 2 any ideas? | |
Ideally I'd like to do it with a list comprehension. Something like this [CODE]result = [(key, value)for key in dict.keys(), value in dict.values()][/CODE] but clearly that isn't the right format. Any suggestions? EDIT: This seems like what I want to do, but it doesn't work: [CODE]result = [(dict.keys[i], dict.values[i]) for … | |
i am a beginner. i have no idea how i can make Tic Tac Toe game. please help me. Question #1 Extend program To use arrays For a 5*5 Tic Tac Toe game. (wins are 5 Horizontal, 5 Vertical, 5 Diagonal) Question #2 Extend to 4*4 array (But wins are … | |
Hi, I am comparing 2000 files with one other file. I want the program to go through each line in both files and compare. If the line is present, then it has to write to another file. What I tried was to open both the files and use readlines() to … | |
I am interested in learning python and picked up a friends textbook to try and work through it. I have no cs experience so am pretty clueless. I am having difficulty with one of the problems in the first chapter lol. i am trying to make the program spit out … | |
Hi, I have stumbled on an interesting problem. I have thought 'n' thought, but haven't come up with any good ideas of how to handle this. I have a text file that contains many records, but without the records being seperated. I need to figure out how to seperate these … | |
How would I limit mouse movement in python? For example I have a 480x480 grid where each block is 30. If I click on a block I would like to only be able to click in an area of one block around the block that I placed. | |
Hello friends, I've tried to install wxwidgets in my mandriva 2009 spring for GUI interaction with python. In the installation instruction it said that i need gtk+ library. So i downloaded GTK+. When i configured GTK+ i got the message checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.21.3 … | |
Greetings! I am in need of some techincal assistance. My problem is as follows: In my Programming class, we are starting to use the graphics package in Python. We are using a module called graphics.py In order to use this module, we have to save it to the desktop and … | |
| Hey All, I have been asked to do a project on Java at school. We are still learning it at an elementary level... Many decided to do the project on things like ticket booking, banking and stuff... whereas I wanted to do something innovative and so decided that my topic … |
The End.