Forum: Geeks' Lounge 11 Hours Ago |
| Replies: 13 Views: 566 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 12 Hours Ago |
| Replies: 128 Views: 7,445 Everybody has been young before, but not everybody has been old before.
~~~ An African Proverb |
Forum: Geeks' Lounge 12 Hours Ago |
| Replies: 5 Views: 187 Wow, recursion in action! Very geeky too! |
Forum: Geeks' Lounge 12 Hours Ago |
| Replies: 13 Views: 442 Oh my God! This is just too funny! Nice find AD! |
Forum: Geeks' Lounge 12 Hours Ago |
| Replies: 1,361 Views: 143,079 A DiGiorno pizza and a Leinenkugel beer. The best combination to watch the Northwestern Wildcats football game on a Saturday. |
Forum: Python 12 Hours Ago |
| Replies: 8 Views: 114 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 12 Hours Ago |
| Replies: 7 Views: 90 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 Hours Ago |
| Replies: 126 Views: 44,222 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 Hours Ago |
| Replies: 8 Views: 114 Also the OP didn't want a zero in the digits part. :) |
Forum: Python 14 Hours Ago |
| Replies: 2 Views: 63 It's always good to use a few test prints:
import operator
OPERATORS = {
'+': operator.add,
'-': operator.sub,
'*': operator.mul,
'/': operator.div,
} |
Forum: Python 14 Hours Ago |
| Replies: 7 Views: 5,904 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 7 Days Ago |
| Replies: 5 Views: 299 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 7 Days Ago |
| Replies: 205 Views: 93,993 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 7 Days Ago |
| Replies: 7 Views: 219 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 8 Days Ago |
| Replies: 6 Views: 177 You are somewhat confused about functions. |
Forum: Geeks' Lounge 8 Days Ago |
| Replies: 13 Views: 1,146 Rugby could become a sport, if they ever show it on the tele in the US. |
Forum: Geeks' Lounge 8 Days Ago |
| Replies: 7 Views: 2,820 Google gives you 3,870 hits for "Binary To Denary Program", much of it Visual Basic. |
Forum: Geeks' Lounge 8 Days Ago |
| Replies: 128 Views: 7,445 "The hardest thing in the world to understand is the income tax."
~~~ Albert Einstein |
Forum: Geeks' Lounge 8 Days Ago |
| Replies: 1,361 Views: 143,079 An apple turnover and a cup of hot chocolate. |
Forum: Geeks' Lounge 8 Days Ago |
| Replies: 13 Views: 574 I went to the C++ forum, but nothing happened. :) |
Forum: Geeks' Lounge 28 Days Ago |
| Replies: 1,361 Views: 143,079 I have a handful of cherry granola cookies with my coffee. |
Forum: Python Sep 21st, 2009 |
| Replies: 9 Views: 374 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: 84,033 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: 331 As a beginner use for loops first, later on 'list comprehensions' become more natural. |
Forum: Python Sep 21st, 2009 |
| Replies: 10 Views: 355 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: 280 At first, I would adopt consistent indentations! Very important in Python. Most people use 4 spaces. |
Forum: Python Sep 21st, 2009 |
| Replies: 4 Views: 554 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: 295 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,361 Views: 143,079 Rice Pudding with Cinnamon |
Forum: Geeks' Lounge Sep 20th, 2009 |
| Replies: 1,361 Views: 143,079 Bottom Round Steak, pink inside, with cauliflower. |
Forum: Python Sep 20th, 2009 |
| Replies: 7 Views: 344 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: 362 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: 361 Now I am curious, did that work for Python26? |
Forum: Python Sep 20th, 2009 |
| Replies: 5 Views: 678 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: 310 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: 2,941 Which Computer Language would you like to know more about, or even start to learn? |
Forum: Python Sep 19th, 2009 |
| Replies: 9 Views: 381 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: 513 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: 667 Views: 73,213 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,838 |