Forum: Geeks' Lounge 13 Days Ago |
| Replies: 13 Views: 939 Yeah, I have heard enough of my fellow students brag about the amount of disk space on their brand new notebooks. I have never bought anything but a used notebook computer, so I have to be happy... |
Forum: Geeks' Lounge 13 Days Ago |
| Replies: 143 Views: 8,833 Everybody has been young before, but not everybody has been old before.
~~~ An African Proverb |
Forum: Geeks' Lounge 13 Days Ago |
| Replies: 5 Views: 411 Wow, recursion in action! Very geeky too! |
Forum: Geeks' Lounge 13 Days Ago |
| Replies: 17 Views: 923 Oh my God! This is just too funny! Nice find AD! |
Forum: Geeks' Lounge 13 Days Ago |
| Replies: 1,376 Views: 146,705 A DiGiorno pizza and a Leinenkugel beer. The best combination to watch the Northwestern Wildcats football game on a Saturday. |
Forum: Python 13 Days Ago |
| Replies: 8 Views: 216 Okay, this might even be mildly better:
import string
a = list(string.ascii_lowercase + "!@#$%^&*()-+={}|\/?><,.'") + range(1, 10)
print a
For Python3 change to list(range(1, 10)). Oh, the... |
Forum: Python 13 Days Ago |
| Replies: 7 Views: 198 What do you mean with "WxGlade does not show value"?
Is it WxGlade or your program you wrote using WxGlade?
Just a note on the smart side of things. If you have a problem for others to look at... |
Forum: Python 13 Days Ago |
| Replies: 126 Views: 45,811 Just testing wxPython's wx.TextCtrl widget used as an edit field for input and output of text based data:
# testing wxPython's
# wx.TextCtrl(parent, id, value, pos, size, style)
# a widget used... |
Forum: Python 13 Days Ago |
| Replies: 8 Views: 216 Also the OP didn't want a zero in the digits part. :) |
Forum: Python 13 Days Ago |
| Replies: 3 Views: 239 It's always good to use a few test prints:
import operator
OPERATORS = {
'+': operator.add,
'-': operator.sub,
'*': operator.mul,
'/': operator.div,
} |
Forum: Python 13 Days Ago |
| Replies: 7 Views: 6,298 Ah, the pros and cons on posting on an old thread.
If you are interested in a regex solution, I would start a new thread and put regex in the title. |
Forum: Python 20 Days Ago |
| Replies: 5 Views: 398 Well, you could do something like this:
# File_lister2.py
# create a list of all the files and sizes in a given direcory
# and optionally any of its subdirectories (Python2 & Python3)
# snee
... |
Forum: Python 20 Days Ago |
| Replies: 206 Views: 95,666 Here is a simple number project:
Prime numbers are positive integer numbers that are only divisible by itself or one. For example 2, 3, 5, 7, 11, 13, 17, are prime numbers, by convention 1 is not... |
Forum: Python 20 Days Ago |
| Replies: 8 Views: 292 You could do:
for c in "Hello World":
print c ,
In Python2 the comma puts in a space and keeps it on the same line. |
Forum: Python 21 Days Ago |
| Replies: 6 Views: 218 You are somewhat confused about functions. |
Forum: Geeks' Lounge 21 Days Ago |
| Replies: 13 Views: 1,217 Rugby could become a sport, if they ever show it on the tele in the US. |
Forum: Geeks' Lounge 21 Days Ago |
| Replies: 7 Views: 2,887 Google gives you 3,870 hits for "Binary To Denary Program", much of it Visual Basic. |
Forum: Geeks' Lounge 21 Days Ago |
| Replies: 143 Views: 8,833 "The hardest thing in the world to understand is the income tax."
~~~ Albert Einstein |
Forum: Geeks' Lounge 21 Days Ago |
| Replies: 1,376 Views: 146,705 An apple turnover and a cup of hot chocolate. |
Forum: Geeks' Lounge 21 Days Ago |
| Replies: 13 Views: 640 I went to the C++ forum, but nothing happened. :) |
Forum: Geeks' Lounge Oct 10th, 2009 |
| Replies: 1,376 Views: 146,705 I have a handful of cherry granola cookies with my coffee. |
Forum: Python Sep 21st, 2009 |
| Replies: 9 Views: 384 I made an attempt on user friendly data entry with just such a simple temperature converter program, see:
http://www.daniweb.com/forums/post992595.html#post992595 |
Forum: Python Sep 21st, 2009 |
| Replies: 194 Views: 85,299 The ultimate user friendly Temperature Converter program. If you put an 'F' or 'f' on the end of the temperature you enter it will give you Celsius. Otherwise it simply assumes you entered a... |
Forum: Python Sep 21st, 2009 |
| Replies: 4 Views: 350 As a beginner use for loops first, later on 'list comprehensions' become more natural. |
Forum: Python Sep 21st, 2009 |
| Replies: 10 Views: 365 Looks like one of the 638 web pages is not available. You should use a try/except trap for this case. |
Forum: Python Sep 21st, 2009 |
| Replies: 4 Views: 289 At first, I would adopt consistent indentations! Very important in Python. Most people use 4 spaces. |
Forum: Python Sep 21st, 2009 |
| Replies: 4 Views: 615 And don't forget to use self to turn those functions into methods for the instance, like
def moveup(self): |
Forum: Python Sep 21st, 2009 |
| Replies: 6 Views: 300 Something like that might do. I avoided the use of float() until the end to keep time-stamp and port info from turning into floats:
raw_data = """\
501 0 0.932 0.933 0.931 0.931 0.929 0.933... |
Forum: Geeks' Lounge Sep 20th, 2009 |
| Replies: 1,376 Views: 146,705 Rice Pudding with Cinnamon |
Forum: Geeks' Lounge Sep 20th, 2009 |
| Replies: 1,376 Views: 146,705 Bottom Round Steak, pink inside, with cauliflower. |
Forum: Python Sep 20th, 2009 |
| Replies: 7 Views: 357 With wxPython code you can give py2exe an XML based manifest to force it to adopt the Windows XP theme. |
Forum: Python Sep 20th, 2009 |
| Replies: 10 Views: 379 To make more sense you should have written your class this way:
class Animal:
def __init__(self, legs):
self.legs = legs
cow = Animal(4)
chicken = Animal(2)
octopus =... |
Forum: Python Sep 20th, 2009 |
| Replies: 7 Views: 396 Now I am curious, did that work for Python26? |
Forum: Python Sep 20th, 2009 |
| Replies: 5 Views: 822 Works fine on my Ubuntu machine. I copied the Python25/26 source from the webpage and saved it as cTurtle.py in my working directory. The module has a number of demos built in that look great and... |
Forum: Python Sep 20th, 2009 |
| Replies: 7 Views: 321 Nice, looks like Python3 has bit your fancy.
Sooner or later we all have to follow your example. |
Forum: Geeks' Lounge Sep 19th, 2009 |
| Replies: 58 Views: 3,078 Which Computer Language would you like to know more about, or even start to learn? |
Forum: Python Sep 19th, 2009 |
| Replies: 9 Views: 392 As you start coding larger projects with Python, remember to go in small steps, test each step, ask question here. Python can be fun!
Python is in many ways more advanced and modern than some of... |
Forum: Python Sep 19th, 2009 |
| Replies: 0 Views: 531 If you own a stopwatch, here is your chance to benchmark the various versions of Python on recursion performance. The Ackermann function gives the old computer quite a workout. |
Forum: Geeks' Lounge Sep 19th, 2009 |
| Replies: 672 Views: 75,030 Phyllobates terribilis (the Golden Poison Frog or the Golden Dart) is the most poisonous frog. A tiny fraction of a drop, 0.00000007 ounces, of its skin secretion is enough to kill a person. |
Forum: Geeks' Lounge Sep 19th, 2009 |
| Replies: 32 Views: 1,881 |