-
Replied To a Post in "Hello World" Fun
New words: tup = ('ello World','uello World') print('\n'.join(chr(n)+tup[chr(n)=='Q']for n in range(66, 91))) -
Replied To a Post in check if raw_input equals a predefinded string
Your code tells me that you are using Python2. Where is your start? -
Replied To a Post in So. Does anyone have any good programming/computing jokes?
Creative answering machine messages: "You have reached the CPX-2000 Voice Blackmail System. Your voice patterns are now being digitally encoded and stored for later use. Once this is done, our … -
Replied To a Post in IDE
I gave **enki** a try, but it failed the simple `name = input("Enter your name: ")` test using it on Python34 and Windows7. -
Replied To a Post in Which is your favourite Linux distro and why?
"If your bank uses Java applets, you should not use their online banking system at all, especially not under Windows." -- Mike How do you find out if your bank … -
Replied To a Post in Nature's Temper
Just survived the "Pineapple Express" that gave large parts of California nine inches of rain. -
Replied To a Post in What are you eating/drinking right now?
I just had a taste of Starbucks Holiday Blend coffee, real good stuff. -
Replied To a Post in So... I signed up to the mailing list...
Don't you feel important with all those emails? -
Replied To a Post in Email that can't be surveilled
My guess is that the folks at Sony wish they used ProtonMail. -
Replied To a Post in Jokes
When I was in Mumbai, India recently, I saw a sign on a vehicle that said, 'English speaking taxi driver'. I thought to myself, "What a wonderful idea. Why don't … -
Replied To a Post in Jokes
An application was for employment A program was a TV show A cursor used profanity A keyboard was a piano. Memory was something that you lost with age A CD … -
Replied To a Post in Science
I am not sure why science has such a bad stigma amongst US teenagers. Maybe because our only heroes are military or sports/entertainers. -
Replied To a Post in What's up with Windows 10?
Windows 10 will have to be successful since about 90% of desktop and laptop computers worldwide use Windows. Apple iOS/OSX follows with 7% and Linux with about 2%. I doubt … -
Replied To a Post in Ancient Dragon
Oh wow, I didn't know about the magic dragon's demise. What a tragedy! -
Replied To a Post in What would you do if Microsoft went bankrupt, and Windows became an orphan product?
Microsoft is "too big to fail". Just like the big banks, the US taxpayer would have to bail them out. Without Windows the whole governmental bureaucracy would be in jeopardy. -
Replied To a Post in Google Translate API (Python)
A code snippet is an example of working code that brings up an interesting aspect of Python programming. An English language string is given and then tanslated into several other … -
Replied To a Post in Starting Python
A look at module fractions: import fractions import math fractional_pi = fractions.Fraction(str(math.pi)) # limit the denominator to 999 or less fractional_pi_999 = fractional_pi.limit_denominator(999) # show result sf = "pi = … -
Replied To a Post in Random Facts
McDonalds has sold so many hamburgers that if you lined them up side by side you could go around the world 52 times. Then with what's left stack them up … -
Replied To a Post in What are you eating/drinking right now?
Strassburger Leberwurst on a potato bagel, and cool mango lemonade. -
Replied To a Post in Random Facts
The integral from -infinity to infinity of e^(-x^2) is sqrt(pi). "Heads, she wins! Tails, you lose!" ¿umop apisdn upside down? -
Replied To a Post in How to set the value in setLabel function more than once?
You might have to update/refresh self.getControl -
Replied To a Post in As a beginner, what IDE should I use?
Writing your own IDE, here is a hint on how to do this sort of thing: http://www.daniweb.com/software-development/python/code/445504/an-almost-ide-wxpython I would use the PySide GUI toolkit, since wxPython is a mess with … -
Replied To a Post in As a beginner, what IDE should I use?
The Eric IDE is full featured and written in Python: http://eric-ide.python-projects.org/ For a beginner the nimble **IDLE** that comes with your Python installation is probably best. -
Replied To a Post in Explanation of par below
In your case `def print_func( par ):` argument par could have other more decriptive names, just make sure you don't use builtin Python function names. For guidelines on writing Python … -
Replied To a Post in Add attributes to function in python
One way would be to use the function's documentation string to do this. -
Replied To a Post in Question from a beginner learning Python
Actually using string formatting would be the most pythonic way: num1 = int(raw_input("Enter an integer")) num2 = int(raw_input("Enter a second integer")) num3 = int(raw_input("Enter a third integer")) ans = num1 … -
Replied To a Post in As a beginner, what IDE should I use?
http://www.daniweb.com/software-development/python/threads/20774/starting-python/19#post2091746 For me Eclipse is woefully sluggish and bloated, since it is written in Java. Python comes in two major versions and it is nice to be able to run … -
Replied To a Post in Explanation of par below
To get more information on **par** you can do this: # Importing support.py module import support support.print_func("Zara") # to get more insight ... import inspect print(inspect.getcallargs(support.print_func, "Zara")) ''' result ... … -
Replied To a Post in Light refraction
pytony, red is a nice color -
Replied To a Post in Gui Interface Toolkits
Don't forget PySide (QT based) http://srinikom.github.io/pyside-docs/contents.html Note: **wxPython** is a bitch to work with on Python3 not sure what those folks are thinking -
Replied To a Post in Tkinter Windows
Typical example: ''' tk_toplevel_window101.py create a toplevel popup window that overlaps the root window ''' try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk … -
Replied To a Post in Python GUI Programming
Sometimes comes in handy: ''' ps_qt_version101.py show the version number for PYSide and the QT version it used ''' import PySide import PySide.QtCore # prints PySide version print(PySide.__version__) # gets … -
Replied To a Post in Numeric Python array
I am somewhat confused, are you talking about a list of (r, g, b) tuples? If you don't need the high speed of numpy, go with those. -
Replied To a Post in Member's Photos
From last years vacation on Lake Michigan.  -
Replied To a Post in Which laptop should I buy?
For sheer ease of use the HP Chromebook 11 is handy. -
Replied To a Post in What are you eating/drinking right now?
A Fiber One lemon bar and peppermint tea. -
Replied To a Post in Memorable Quotations
"Getting an MBA is the death sentence for tinkering. Nothing drives out the pleasure of experiment like a business degree, and the better the school, the worse the impact." --- … -
Replied To a Post in Projects for the Beginner
A good approximation of the cosine of a given angle can be obtained with the following series calculation: ''' cos_approximate102.py based on series ... cos(x) = 1 - x2/2! + … -
Replied To a Post in Finding approximations of sine and cosine with given value theta in degrees
Module math also has: math.degrees(x) converts angle x from radians to degrees. math.radians(x) converts angle x from degrees to radians. You can get a good free online book here: http://www.greenteapress.com/thinkpython/ -
Replied To a Post in Python Challenges
The nice thing about glob.glob() is that handles mixed case extensions like .Py or .TxT or .Txt that sometimes appear. -
Replied To a Post in How to sort two wxlistctrl
Is wxPython still around? -
Replied To a Post in Python ideas.
Learn, listen, logic. -
Replied To a Post in Memorable Quotations
"A lie gets halfway around the world before the truth has a chance to get its pants on." ... Winston Churchill -
Replied To a Post in How is the weather today in your country?
Snow in the mountains, sunshine in the valley. -
Replied To a Post in What are you eating/drinking right now?
A shroomburger and ginger ale. -
Replied To a Post in Programming Sucks
Hating might be better than whipping. -
Replied To a Post in Which language now??
It seems that Java is being updated just about every time I turn my Pc on. Is it really that full of bugs? -
Replied To a Post in What is your favorite English word?
supercalifragilisticexpialidocious -
Replied To a Post in What is the most famous place of interest in your country?
The tourist trap (the place is full of cars) of Virginia City Nevada. This homely looking place sprang up as a boomtown on top of the Comstock Lode, the first … -
Replied To a Post in Python Challenges
You can change `*.jpg to *.py`, but that won't show you the `.txt` files.
The End.