15,179 Topics
| |
How to use RE to solve this, I did it with other method. THANK YOU VERY MUCH! Here is Question: '''Parse Stock prices. Create a function that will decode the old-style fractional stock price. The price can be a simple floating point number or it can be a fraction, for … | |
Hello, everyone i just start to learn python, but i have some problem of it can you help me figure it out please? my problem is i want to obtain a sensetce and obtain one randomly words from the use i want to write a prgram which can find out … | |
I have printed the contents of 2 folders to separate txt files. It is in the form of a python list ['a', 'b', etc.] How could I loop through the files looking for matching list elements? My first problem is how to extract the words from out of the quotes … | |
Hey guys, just like the other graph/node problem on here, I too have a problem with graphs. The problem is as listed here: [URL="http://www.cs.rit.edu/~vcss241/Homeworks/08/AlternateDFS-stu.pdf"]http://www.cs.rit.edu/~vcss241/Homeworks/08/AlternateDFS-stu.pdf[/URL] and the pseudocode for what I'm trying to do is this: [QUOTE]DFSnodeWithDeletion( graph, node ): count the node itself for every neighbor of node: remove the … | |
[B]How to validate an IP Address using python? It should reject the shorter addresses such as 192.168 instead of padding the rest of the bits the address with 0s[/B] | |
hai all , i have a string s= The POST variable NM_xwTapCtl%24_img_Banner is vulnerable.,The POST variable NM_xwTapCtl%24scrollTop is vulnerable. I dont know the procedure to modify that s to s = NM_xwTapCtl%24_img_Banner,NM_xwTapCtl%24scrollTop HELP ME PLEASE!!!!!!!!!!!!!! | |
[COLOR="Red"]COULD ANY GEEK HELP ME FIND OUT WHAT IS WRONG WITH MY CODE FOR RE?[/COLOR] [COLOR="Green"]SINCE THE BACK PART IS MARKED INVALID SYNTAX......[/COLOR] [CODE]'''you are given a bunch of phone numbers in a file whose name is provided by parameter name_fin, each line has exectly one phone number. They look … | |
| |
i have a string s= The POST variable NM_xwTapCtl%24_img_Banner is vulnerable.,The POST variable NM_xwTapCtl%24scrollTop is vulnerable. I dont know the procedure to modify that s to s = NM_xwTapCtl%24_img_Banner,NM_xwTapCtl%24scrollTop HELP ME PLEASE!!!!!!!!!!!!!! ( i think search for The Post Variable and display the next word ,after that again search if … | |
Hai, can any one please help me to converts array elements to a single string For Example : Myarray = ['Mac','Windows','vista'] Ouput should be like id='Mac,Windows,vista' Pleaseeeeeeeee help me............ | |
I'm stuck. I currently have the following example file structure: X, Y, Z 0.000234E+04, 0.000244E+03, 0.000234E+04 0.000244E+03, 0.000234E+04, 0.000238E+05 0.000238E+05, 0.000244E+03, 0.000234E+04 I would like for the Scientific Notation to be converted to float or integer values: X, Y, Z 2.34, 0.244, 2.34 0.244, 2.34, 23.8 23.8, 0.244, 2.34 I … | |
I'm a newbie to Python and after much googling to no avail I wanted to see if I could get some help here. I'm trying to come up with a script to take lines from a textfile and insert them into specific places in another file. Here's a simple example: … | |
I'm looking for a simple way to modify a 2D list as shown below. Starting with a list such as this: 1,2,3 4,5,6 7,8,9 I want to create a list that looks like this: 1,2 4,5 7,8 1,3 4,6 7,9 Which is just the first and second column with the … | |
I have this question that I've been trying to solve for the past hour but i've been getting it wrong, can someone help me? Question: Create a list of the odd numbers between 1 and n (include 1 as well as n -- if it's odd-- in the list). Associate … | |
| |
Hey guys I have a study guide that I need some assistance with if possible. it is basically definitions. Classes={} Assume these statements are working with classes and objects: Attribute?property Instance Encapsulation Also I need to tell what this code does. I am not good with classes at all please … | |
I have a list [CODE]x = ['abc','1','2','3','def','6','8','5','13','mcg','568','35469','6453'][/CODE] I want the output file in a dictionary as follows: [CODE]dict = {'abc':['1','2','3'],'def':['6','8','5','13'],'mcg':['568','35469','6453']}[/CODE] How can i do this? | |
I'm trying to build a Tkinter that counts how many times a letter appears in the entry box. I want it so I enter letters A,B, or C into the entry box, and when I click 'Count' it displays how many times each letter appears. I feel like I'm really … | |
My project is to create a solitaire game with a different card deck. I have created four lists with three objecs in each off them and I would like to create 81 unique cards out off these objecs. colors = [blue, yellow, red] shapes = [triangel, circle, square] numbers = … | |
Hi Experts, I was wondering how to do the following: I have three strings that have five numbers assigned to them for instance, 'a' can equal 1, 2, 3; 'b' can only equal 4 and 'c' can only equal 5. some process happens and I get a result of an … | |
[B]when the parser is populated with options using optparse, in a case where an option say 'ip' is to be used twice, I get an OptionConflictError. when the conflict handler was set to "resolve" as suggested in [URL="http://docs.python.org/library/optparse.html"]http://docs.python.org/library/optparse.html[/URL] , it resolves the situation by removing '-ip' from the earlier options … | |
hi... I have written a script for FTP upload using python.. It worked fine when i tried on local boards, but is giving me an error when trying with a remote board via VPN. this is the error i get: [B](104, 'Connection reset by peer')[/B] the machine i developed script … | |
I'm trying to display a value on the status bar according to a position on a plot made on a panel. So I want to call the method SetStatusText with the value in a string. The instance of RefreshPanel is set within a frame called 'frame', which is an instance … | |
I am a new python user and I am trying to code an implementation to calculate and empirical cdf. So far, I have some code (attached below) that returns a list of tuples [(datapoint, P(X>=x)),...]. The problem I am trying to resolve is how to take care of replicated data … | |
Hi guys! I'm a beginner in Python and I am having a bit of trouble with this program. What I need to do is ask the user how much they must pay, and how much they are paying. Example: Buying groceries that cost $10.27 and the user is paying $11.00. … | |
Hi, I as a Python novice I throw myself at the mercy of experts in this forum. Could someone post a simple example of how to implement urllib2's proxy authentication. I've read all the references google returns as well as searched this site and cannot find an example that I … | |
can anyone show a small sample of how [B]optparse module[/B] can be used to parse a command line arguement? the command line is somewhat like: <scriptname> -ip<ip address> -opt1/opt2 | |
The class GoogleSuggest will help you to grab the Google suggestion(s) for given expression. [B]Note[/B]: The urllib2 module has been split across several modules in Python 3.0 named urllib.request and urllib.error. The 2to3 tool will automatically adapt imports when converting your sources to 3.0. Example and output: [QUOTE] >>> ================================ … | |
Hey all, I have a text file and I want to find out the top 40 most used words in the text file. I managed to do that. But, I have another text file that has hundreds of "stop words." When looping through the text file to find out the … |
The End.