-
Replied To a Post in error
Not without knowing what argv contains. Print it and see for yourself. print argv print len(argv) -
Replied To a Post in Random Facts
Capt Kirk never said "Beam me up Scotty". The closest was "Scotty beam me up" but usually it was "3 to beam up Scotty" unless one of the crew going … -
Began Watching Ceaser cipher
I need help with this program I am doing. I need to be able to select encrypt or decrypt(ive only done encrypt at the momment) and need to be able … -
Replied To a Post in Ceaser cipher
First you have to define the limits of the character set. Are you using English/ASCII as other character sets have an extended range? Do you want to encode special characters … -
Replied To a Post in There is an elephant on the loo!
BERLIN (AP) — Police in Germany are looking for a missing pigeon, and any finder could be in line for a 10,000-euro ($12,250) reward. Duesseldorf police said Tuesday that the … -
Began Watching Why I sometimes hate ads
Why I hate ads 1: some take 5min or more until your favourite tv show comes back on 2: they always show the ads 2 or 3 times in a … -
Replied To a Post in Why I sometimes hate ads
Radio and TV are advertising mediums. The only reason there are shows is to get people to watch the ads. Remember that there is an off button, and exercising your … -
Began Watching Number of files with specific sizes
Hi, I am trying to write a script that will traverse through my directory and sub directory and list number of files in a specific size. For example 0kb-1kb: 3, … -
Replied To a Post in Number of files with specific sizes
Since each increment is 4 times the previous, you should be able to divide the size by 1024 and use that. But to use the form you posted, you first … -
Began Watching Trigger File Execution on Secondary PC with Python
Hey all. I'm facing a bit of a challenge and and having a hard time trying to figgure out how do do this. Basically I have two computers (Raspbery Pi's) … -
Replied To a Post in Trigger File Execution on Secondary PC with Python
To execute a string you can use subprocess.call("string to execute", shell=True) See Doug Hellmann's subprocess explanation for additional info http://pymotw.com/2/subprocess/index.html#module-subprocess -
Replied To a Post in Things I hate about TV shows
Someone is locked in the closet and the locking mechanism is on the outside. You would use a key on the inside of the closet?? First, most closets don't have … -
Began Watching Response we should not make, to questions they should not ask
that question is so ... **things we perhaps should not post in a reply** "You personify the zero end of every 0-10 scale" "We have never seen that point on … -
Replied To a Post in Response we should not make, to questions they should not ask
I searched and searched and couldn't find an answer for this question. There are no answers to be found in a video game -
Began Watching AttributeError: 'MyClass' object has no attribute
Hi guys I need a bit of your help. I've created the variables that I want to store a list of arrays outside the for loop. I have got a … -
Replied To a Post in AttributeError: 'MyClass' object has no attribute
for elem in self.programs_button: That statement is not in the code you posted. -
Replied To a Post in Jokes
Last bad joke, by me anyway. What do you call a woman with one leg shorter than the other. Eileen -
Began Watching Python in terminal tic tac toe help
im a beginner with python, and I'm having trouble with some functions. I'm pretty sure it might be a syntax error or how i set up the code, since i … -
Replied To a Post in Python in terminal tic tac toe help
The second return statement in inputPlayerLetter() never executes because the function exits when the first return is called. It should be return Player, Computer And you then have to catch … -
Began Watching good form
Is this considered good form when writing cross-platform code? #! /usr/bin/env python3 And how about this? if __name__ == "__main__": main() I've reviewed some recent sample snippets and not all … -
Replied To a Post in good form
using main() is a waste as it is the same thing as putting it under `if __name__` etc. Instructors use it to teach students about functions, and always use the … -
Began Watching Help with programm
don't work this: bg_fon2 = PhotoImage(file='2.GIF') from tkinter import* import random root = Tk() root.geometry("896x626") canv = Canvas(root, height = 626, width = 896) bg_fon = PhotoImage(file='fon.GIF') canv.create_image(0,0,image=bg_fon,anchor='nw') class Fish: … -
Replied To a Post in Help with programm
> don't work this: bg_fon2 = PhotoImage(file='2.GIF') We have no idea what that means. Is it displaying upside down, or cropped, bad colors, etc. -
Replied To a Post in Random Facts
An eagle's eye can weigh more than it's brain according to birdnote.org -
Replied To a Post in Character matching in string comparison
Send the list named matches to the function id_generator. If the element in the list equals "?" then generate a random letter. If not then append the letter from matches … -
Replied To a Post in Cant get my button to work properly for my game
It means check those other forums before answering, or we may be wasting our time answering a question that has already been answered elsewhere. We are volunteers and have limited … -
Replied To a Post in Cant get my button to work properly for my game
Also posted to http://www.reddit.com/r/learnpython/comments/2okkux/ and http://forums.devshed.com/python-programming-11/continue-button-game-965843.html -
Replied To a Post in Bad Grammar
When someone says "Well, to tell you the truth", I want to ask them how long they have been lying. -
Began Watching Character matching in string comparison
I am trying to get character matching when comparing two strings. The result would display the two words side by side with the matching (and non-matching) characters displayed. This would … -
Replied To a Post in Character matching in string comparison
You start with a list full of ? and replace each ? with a letter when guessed correctly. ## assumes both words are the same length def display_matches(matches, test_word, sample_word): … -
Began Watching Cant get my button to work properly for my game
I"ve been working on this dice game for the past few days. I made sure the game itself worked properly then I added a draw dice function that would show … -
Replied To a Post in Cant get my button to work properly for my game
> second it does not give me messages for when a one is rolled or 2 is rolled Do you mean one or two dice are rolled, or the dice … -
Replied To a Post in Memorable Quotations
Rumor has it he was quoting Mr Greenjeans English proverb "The soul is healed by being with children." -
Began Watching Jokes
A cat has 9 lives -- what has more than 9 lives? Answer: Frogs because they croak every night. (Duck Dynasty) -
Replied To a Post in Jokes
From the kids: Where do you find a turkey with no legs. Right where you left it. -
Replied To a Post in Random Facts
From accuweather.com London, England (1952) Air pollution disaster. Smoke from burning coal mixed with fog forming sulphuric acid in the air. People wore gas masks...cars used headlights by day. After … -
Began Watching python program for zig-zag star pattern. how to print the following pattern
* * * * * * * * * * * * * * * * * * * * * * -
Replied To a Post in python program for zig-zag star pattern. how to print the following pattern
You can use he same variable for the number of spaces to print, see below. If you want to print a total of 40 stars, I can't tell from your … -
Began Watching I can't pass a constant string to a function?
I was testing this in prompt mode: import re def checkurl(url): check = re.match(r'^(:?https?://)?[^\/#?&]+\.[^\/#?&]+.*$',url) if check == None: print “NNOOOOOO!!!!” else: print “YESSSS!!!!!” checkurl("javascript:void(0);") checkurl("/account/general?ru=https%3a%2f%2fwww.bing.com%3a443%2fsearch%3fq%3dukraine%2bcrisis&FORM=SEFD") checkurl("/?FORM=Z9FD1") checkurl("http://choice.microsoft.com") I have no … -
Replied To a Post in I can't pass a constant string to a function?
Print the variable, url, in the funtion to see if your title is correct or not. -
Replied To a Post in Random Facts
Solstice Sun rise and set for the Pasadena, Ca. longitude and latitude. The earliest the Sun sets is Dec 2-6 at 16:42. The latest the Sun rises is Jan 2-13, … -
Began Watching Adding a timer to my program
Hi so basically I need to create a timer for this simple maths test. I need it to give each question, lets say 30 seconds for test purposes, and then … -
Replied To a Post in Adding a timer to my program
You would have to use multiprocessing for the timer since the program is doing two things, 1. getting the answer 2. moving on/killing the question's process after 30 seconds whether … -
Replied To a Post in Access the clipboard via Tkinter
Apparently Fluxbox uses xclipboard so xclip and xsel have to be installed if you want to use them. Unfortunately when doing cross-platform stuff, Linux is not one size fits all. -
Began Watching Access the clipboard via Tkinter
You can accesss the clipboard simply by using the Tkinter GUI toolkit that comes with your Python installation. -
Replied To a Post in Access the clipboard via Tkinter
Produces can't find clip error on Slackware and Python 2.7 Linux uses xclip as it does not view the OS and GUI as the same thing, but "Xclip", "xclip", and … -
Replied To a Post in Memorable Quotations
I like the Travis McGee novels in part because of the insight John D MacDonald inserts. "This is a complex culture... The more intricate our society gets, the more semi-legal … -
Created Reasons You Get Down-Voted
There aren't that many, and of course this is more for entertainment. I will start it out 1. You didn't post a complete, working example to a homework problem that … -
Began Watching Reasons You Get Down-Voted
There aren't that many, and of course this is more for entertainment. I will start it out 1. You didn't post a complete, working example to a homework problem that … -
Replied To a Post in get the list of values outside of the loop
Are you sure you even read the post as the list is still declared under the same for() loop.
The End.