• Member Avatar for woooee
    woooee

    Began Watching Dictionary from a text file

    I'm trying to create a program that will prompt the user for a list of text files to read from, then read those text files and build a dictionary of …
  • Member Avatar for woooee
    woooee

    Replied To a Post in Dictionary from a text file

    Do you want to include numbers and everything else not in string.punctuation s_nopunct = "".join(c for c in s if c not in string.punctuation).lower() Generally it is better to include …
  • Member Avatar for woooee
    woooee

    Replied To a Post in Things I hate about TV shows

    Which is worse in movies/shows from the 80s: the teased hair or the synthesizer music.
  • Member Avatar for woooee
    woooee

    Began Watching How do i go back to a certain line of code?

    I have some code and i want to go back into a certain line however i am not sure how i can achive such things. #SnakeFactBook v.1 #Here is the …
  • Member Avatar for woooee
    woooee

    Replied To a Post in How do i go back to a certain line of code?

    Use a function http://www.tutorialspoint.com/python/python_functions.htm and call it as many times as you like import time def print_something(ctr): choices = ["zero", "one", "two", "three", "four", "five", "six"] if ctr < len(choices): …
  • Member Avatar for woooee
    woooee

    Replied To a Post in Bad Grammar

    > Reminds me of the Yoda condition I see occasionally in code. If 5 = x Then That should yield an error in most of today's compiliers. There was a …
  • Member Avatar for woooee
    woooee

    Began Watching What is your favorite English word?

    Mine is: > *procrastination* Don't ask me why. I guess it's the succession of vowels o a i e u
  • Member Avatar for woooee
    woooee

    Replied To a Post in What is your favorite English word?

    Conundrum = Trying to fiqure out what Pneumonoultramicroscopicsilicovolcanoconiosis means
  • Member Avatar for woooee
    woooee

    Replied To a Post in Things I hate about TV shows

    An incidental character is just shot, while the hero is put into some kind of elaborate will-blow-up-at-some-tme-in-the-future position to kill them. Of course they escape in the nick of time. …
  • Member Avatar for woooee
    woooee

    Replied To a Post in button click issue

    > It gives me an errorwhere the # is below > print "\ncb_handler"#, cb_number "It gives me an error" is not nearly enough info. Are you using Python 3.x? There …
  • Member Avatar for woooee
    woooee

    Began Watching button click issue

    Hi I am having a problem with the "nextz" part "Click Here to see the new winning number." I want to kill this button after it shows the winning number. …
  • Member Avatar for woooee
    woooee

    Replied To a Post in button click issue

    Your program has many issues. The main problem is that you have many instances of the Tk() class, which leads to unknown results. Use Toplevel to open a new GUI. …
  • Member Avatar for woooee
    woooee

    Began Watching variable as a counter

    Hi I need help using the variable mytik as a counter in the GUI "app" If you run this code mytik stays at 1,2,3,4 or 5 as entered but when …
  • Member Avatar for woooee
    woooee

    Replied To a Post in variable as a counter

    > but has the value of mytik = .16801968 That is a tkinter ID number. mytik = Entry(aApp,textvariable=tik)
  • Member Avatar for woooee
    woooee

    Replied To a Post in There is an elephant on the loo!

    Yes, and I wonder how many answer wrong on purpose, thinking that's a dumb question.
  • Member Avatar for woooee
    woooee

    Replied To a Post in There is an elephant on the loo!

    1 In 4 Americans Thinks The Sun Goes Around The Earth, Survey Says A quarter of Americans surveyed could not correctly answer that the Earth revolves around the sun and …
  • Member Avatar for woooee
    woooee

    Replied To a Post in There is an elephant on the loo!

    Biblical scholars have long been aware [that] many of the stories and accounts in the sacred book were not written by eyewitnesses, and according to new research, further evidence of …
  • Member Avatar for woooee
    woooee

    Began Watching Open CSV file and write new file

    I'm attempint to write a python application that will open a .csv file and look at comun one for certain string. If the string match print the row to a …
  • Member Avatar for woooee
    woooee

    Replied To a Post in Open CSV file and write new file

    This code writes every row to the output file if "cat" is found anywhere in the file. for row in reader: if "cat" in reader: writer.writerow(row) For three different strings, …
  • Member Avatar for woooee
    woooee

    Replied To a Post in Memorable Quotations

    Gentlemen You can't fight in here, this a war room Dr. Strangelove...or How I Learned to Stop Worrying and Love the Bomb.
  • Member Avatar for woooee
    woooee

    Began Watching laptops hunt....

    Hello everyone...I turn to u in search of help... OK..So in a nut shell : I'm seeking three refurbished laptops with decent specs...shipped fedex international...as we all have learned the …
  • Member Avatar for woooee
    woooee

    Replied To a Post in laptops hunt....

    "Refurbished" is a crap shoot. I've had good luck where they last as long as a new machine and one that died after a few months. As a general rule …
  • Member Avatar for woooee
    woooee

    Began Watching how to import modules to main and excecute

    from Simhash import Simhash from teamque1.referrences.definitions import define from teamque1.referrences.definitions import teamscore from teamque1.referrences.definitions import teamplayers from teamque1.referrences.definitions import teamtable from teamque1.referrences.definitions import teamposition from teamque1.referrences.definitions import teamsgame import re …
  • Member Avatar for woooee
    woooee

    Replied To a Post in how to import modules to main and excecute

    Also, functions [Click Here](http://www.tutorialspoint.com/python/python_functions.htm) make it easy to test each module individually, and to see things that may be burried in a larger body of code like the duplicate similarity …
  • Member Avatar for woooee
    woooee

    Replied To a Post in Bad Grammar

    Using the royal "we" when one is referring to oneself is even worse, especially when one works with one who actually does this. And no, the one who does this …
  • Member Avatar for woooee
    woooee

    Replied To a Post in confused with file question

    You should add the "\r\n" each time and test for size def create_file_numbers(filename, size): output_list = list() count = 0 total_output = 0 while total_output < size: output = "%d\r\n" …
  • Member Avatar for woooee
    woooee

    Began Watching Import EOL

    So I have been working on a directory and have not really been able to get it off the ground. As a matter of fact none at all. import H:\Python …
  • Member Avatar for woooee
    woooee

    Replied To a Post in Import EOL

    Add the directory to your path then use import program_name. To add it permanently add export PYTHONPATH=$PYTHONPATH:/new/directory/name to your .bash.rc file. To add it for this program sys.path.append("/add/this/directory") See this …
  • Member Avatar for woooee
    woooee

    Began Watching i need help and quick

    can i have some advice for making a basic program, and can someone help me through python plz thx
  • Member Avatar for woooee
    woooee

    Replied To a Post in i need help and quick

    Use Idle to start, as it comes with Python. Later you can move to something else once you know more. [Getting started with Idle](http://www.ai.uga.edu/mc/idle/index.html) (although your version of Python is …
  • Member Avatar for woooee
    woooee

    Began Watching functions in list

    return the first count multiples of number in desc order in a list. e.g call with input (3,2) returns [6,3] call with input(5,3) returns [15,10, 5] plz help me with …
  • Member Avatar for woooee
    woooee

    Replied To a Post in functions in list

    That question was already asked [here](http://www.daniweb.com/software-development/python/threads/470940/multiples-in-desc-order-in-list) with more than enough hints to solve the problem.
  • Member Avatar for woooee
    woooee

    Began Watching confused with file question

    I found this question on the internet, > Create a text file with name filename and about size bytes. The file should contain > an incrementing number on each line …
  • Member Avatar for woooee
    woooee

    Replied To a Post in confused with file question

    The problem is here while os.stat(filename).st_size < size: Both input and output are buffered on computers. First create a list of what you want to write and check the size …
  • Member Avatar for woooee
    woooee

    Began Watching sorting of list using list.sort

    I have a list say word = ["engine","ant","aeiou"] I need to sort the list according to the number of vowels in the list elements. And this sort must change the …
  • Member Avatar for woooee
    woooee

    Replied To a Post in sorting of list using list.sort

    Append the count + word to the new list. words = ["engine","ant","aeiou"] count = 0 vow_count = [] for chars in words: for letter in chars.lower(): if letter in 'aeiou': …
  • Member Avatar for woooee
    woooee

    Replied To a Post in There is an elephant on the loo!

    Sleep showers away cellular grime that builds up while the brain is awake. The brain pushes fluid in between its cells to flush out buildup products, such as protein pieces …
  • Member Avatar for woooee
    woooee

    Began Watching learning classes: why doesn't this code work?

    class Point: def __main__(self, x=0, y=0): self.x = x self.y = y def distance_from origin(self): return ((x ** 2) + (y ** 2)) ** 0.5 def distance_between_points(a, b): return distance_from_origin(a) …
  • Member Avatar for woooee
    woooee

    Replied To a Post in learning classes: why doesn't this code work?

    Your code is not anything that can really be corrected. Start with the "Defining Classes" and "Using Classes" [Click Here](http://www.freenetpages.co.uk/hp/alan.gauld/tutclass.htm) and go on from there Post back once you have …
  • Member Avatar for woooee
    woooee

    Replied To a Post in There is an elephant on the loo!

    How come you can travel north in a straight line until you go south, but when you go west you are always going west.
  • Member Avatar for woooee
    woooee

    Began Watching flashplayer disaster

    Simple enough - you would think. I need Flashplayer in order to watch videos etc. HOWEVER Adobe has (apparently) updated it's product beyond the machine I am currently using - …
  • Member Avatar for woooee
    woooee

    Replied To a Post in flashplayer disaster

    I don't know what an ibookG4 is but if it is an Apple product, previous versions should be available in their repos and it would be as simple as telling …
  • Member Avatar for woooee
    woooee

    Replied To a Post in Memorable Quotations

    > "I love it when a plan comes together." - John "Hannibal" Smith (The A-Team) +1 I am, therefore I think. Descartes has it backwards.
  • Member Avatar for woooee
    woooee

    Began Watching Bad Grammar

    I can't take it anymore. At first it was only occasionally. Now it seems that every time I turn on the TV someone else is doing it. Doesn't our school …
  • Member Avatar for woooee
    woooee

    Replied To a Post in Bad Grammar

    > Your allowed to split infinities now and I do it the odd time. If the reader doesn't understand, he still won't understand if you switch the words around But …
  • Member Avatar for woooee
    woooee

    Began Watching Odd Mountain in lists

    odd mountain is a list of odd numbers going up from 1 and then back to 1. e.g. odd_mountain of size 5 is [1,3,5,3,1] odd_mountain of size 4 is [1,3,3,1] …
  • Member Avatar for woooee
    woooee

    Replied To a Post in Odd Mountain in lists

    The easiest to understand is to use two loops, the first going up to the halfway point and the second going down. You have to first decide how to find …
  • Member Avatar for woooee
    woooee

    Began Watching multiples in desc order in list

    Hello everyone! I got this question in a book.. I thought of doing it using map() or using loops return the first count multiples of number in desc order in …
  • Member Avatar for woooee
    woooee

    Replied To a Post in multiples in desc order in list

    You can do this with list comprehension. A hint x=3 print range(x, 0, -1)
  • Member Avatar for woooee
    woooee

    Began Watching Using inheritance with Tkinter

    Hi, the following is the code for my a2 computing project. Essentially what I have tried to do is set up two basic structures of GUIS and then inherit them …

The End.