• Member Avatar for ZZucker
    ZZucker

    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)))
  • Member Avatar for ZZucker
    ZZucker

    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?
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    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.
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Nature's Temper

    Just survived the "Pineapple Express" that gave large parts of California nine inches of rain.
  • Member Avatar for ZZucker
    ZZucker

    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.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in So... I signed up to the mailing list...

    Don't you feel important with all those emails?
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Email that can't be surveilled

    My guess is that the folks at Sony wish they used ProtonMail.
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    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.
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Ancient Dragon

    Oh wow, I didn't know about the magic dragon's demise. What a tragedy!
  • Member Avatar for ZZucker
    ZZucker

    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.
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    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 = …
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in What are you eating/drinking right now?

    Strassburger Leberwurst on a potato bagel, and cool mango lemonade.
  • Member Avatar for ZZucker
    ZZucker

    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?
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in How to set the value in setLabel function more than once?

    You might have to update/refresh self.getControl
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    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.
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    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.
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    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 ... …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Light refraction

    pytony, red is a nice color
  • Member Avatar for ZZucker
    ZZucker

    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
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    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.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Member's Photos

    From last years vacation on Lake Michigan. ![0bbe5a163bc1c00c67f1fbfbf1952853](/attachments/large/1/0bbe5a163bc1c00c67f1fbfbf1952853.jpg "0bbe5a163bc1c00c67f1fbfbf1952853")
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Which laptop should I buy?

    For sheer ease of use the HP Chromebook 11 is handy.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in What are you eating/drinking right now?

    A Fiber One lemon bar and peppermint tea.
  • Member Avatar for ZZucker
    ZZucker

    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." --- …
  • Member Avatar for ZZucker
    ZZucker

    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! + …
  • Member Avatar for ZZucker
    ZZucker

    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/
  • Member Avatar for ZZucker
    ZZucker

    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.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in How to sort two wxlistctrl

    Is wxPython still around?
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Python ideas.

    Learn, listen, logic.
  • Member Avatar for ZZucker
    ZZucker

    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
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in How is the weather today in your country?

    Snow in the mountains, sunshine in the valley.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in What are you eating/drinking right now?

    A shroomburger and ginger ale.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Programming Sucks

    Hating might be better than whipping.
  • Member Avatar for ZZucker
    ZZucker

    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?
  • Member Avatar for ZZucker
    ZZucker

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

    supercalifragilisticexpialidocious
  • Member Avatar for ZZucker
    ZZucker

    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 …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Python Challenges

    You can change `*.jpg to *.py`, but that won't show you the `.txt` files.

The End.