- Strength to Increase Rep
- +14
- Strength to Decrease Rep
- -3
- Upvotes Received
- 220
- Posts with Upvotes
- 163
- Upvoting Members
- 75
- Downvotes Received
- 12
- Posts with Downvotes
- 11
- Downvoting Members
- 11
student
- Interests
- Organic Cooking Wine Cars Biology&Sex
Re: It is better to die for something than to live for nothing. -- George S. Patton (US Army) | |
Re: Closeup shots of people's faces reading off information in a manner they would not normally talk to each other. Those investigative shows are loaded with it. | |
Re: Steamed shrimp over linguini smothered with nice creamy basil and garlic souce. Also like to drink fresh extra roast coffee from Sumatra. Remember you can only have limited amount of meals in your lifetime, so make them memorable! | |
Re: Simply store the reference to the function in the variable. Here is example: [code]def one(): print("hello from function one") def two(): print("hello from function two") def three(): print("hello from function three") # stores the ref of function in variable f1 = one f2 = two f3 = three func_list = … | |
Re: You can't mix geometry managers pack() and grid() withint the same parent widget. I would stick with grid(), now it works: [code=python]from Tkinter import * try: from PIL import Image, ImageTk except ImportError: import Image, ImageTk class SplashScreen(Toplevel): def __init__(self, master, image=None, timeout=1000): """(master, image, timeout=1000) -> create a splash … | |
Re: BTW, how do you copy and paste the new DaniWeb code areas? | |
Re: You got to let us know why it isn't passing? | |
Re: With DEVCPP this works just fine: [code=cpp]// obtain square root #include <iostream> using namespace std; int main(int argc, char *argv[]) { double s, a, b, c, area; s = 5.0; a = b = c = 1.5; area = sqrt(s*(s-a)*(s-b)*(s-c)); cout << "sqrt(" << s*(s-a)*(s-b)*(s-c) << ") = " << … | |
Re: Fruit bats, a delicacy for some West Africans, are considered to be the Ebola virus's natural host. Source: http://www.bbc.com/news/world-us-canada-29462431 | |
Re: This review of the roomba and neato show that the neato is much more efficient with its planned path: [url]http://www.botjunkie.com/2010/06/04/irobot-roomba-560-vs-neato-xv-11/[/url] | |
Re: Double click on the code to select all of it, then right click selection and pick copy from the dropdown menu. | |
Using the wx.lib.pdfwin.PDFWindow one can read Adobe PDF files (.pdf) with wxPython. The PDF file format is popular document file format allowing mixing of text and graphics. The GUI toolkit wxPython's newer wx.activex module allows one to use the ActiveX control, as if it would be one wx.Window. It actually … | |
Re: An IDE like PyScripter would redline line 11 because of the missing comma. You can also streamline your code further with another function to remove some of the repetition: def main(): shipweight = float(input('Please enter the weight of the item you wish to ship: ')) shipping_charges(shipweight) def shipping_charges_calc(rate, shipweight): print("{} … | |
Re: This is kind of neat: [code]# assigning the same value to several variable names: a = b = c = 7 print( a ) # 7 print( c ) # 7 # contents of local dictionary ... print( vars() ) # {'a': 7, 'c': 7, 'b': 7, ... } [/code] | |
Re: Build a Memory Game. You shortly flash up a number of random words. Lets say three or five, and then ask the player to recall the words from a mutli choice answer. Do that a ten or twenty times and then rate the player. They could be numbers too, but … | |
Re: You made Python sound very interestung to me! | |
Re: Twenty-five percent of the people who live in North Africa have never seen any rainbow. | |
Re: Just bought used Dell XP notebook for class work and installed Python 3.1 and then PyQT4 form: [url]http://www.riverbankcomputing.co.uk/software/pyqt/download[/url] Windows installer (14JUL2009): PyQt-Py3.1-gpl-4.5.2-1.exe I also installed PyScripter IDE from: [url]http://code.google.com/p/pyscripter/[/url] Windows installer: PyScripter-v1.9.9.7-Setup.exe All Python things works charmingly well! Here is my experiment with the PyQT code: [code=python]# simple PyQT window … | |
Re: I always wondered how qsort was correctly implimented. | |
Re: If the words in your list/file are unique, you can do something like this: import pprint # write a test file with unique words names = '''\ paul peter sally frank jim Sandra quito ''' fname = "names.txt" with open(fname, 'w') as fout: fout.write(names) name_dict = {} # read in … | |
Re: Windows 95 was released on August 24, 1995 As far as computing is concerned this is really, really old! I can't believe that there are many machines left out there. Maybe in some museum basement. | |
Re: [QUOTE=aksegaly;1011808]how to save in the memory of the phone with rms + python[/QUOTE]Vary bad manners to hijack this thread for such question. Start your own thread and give more info! | |
Re: @James.Lu How would you mix up a dictionary with a random seed? | |
Re: I agree with JorgeM, real world examples/projects are important to keep the students interested. | |
Re: Windows 8.1 works for me most of the time! Not sure if Windows 10.1 will be much better. | |
Re: Same problem here: http://www.daniweb.com/software-development/python/threads/451832/i-dont-know-how-to-use-python..-please-help#post1957570 and here: http://forums.devshed.com/python-programming-11/i-don-t-know-how-to-use-python-help-me-943069.html and here: http://forums.devshed.com/python-programming-11/how-do-you-write-a-program-for-this-in-python-943070.html | |
Re: One computer is just not enough. I usually have my desktop PC, two netbooks and an IPad going. | |
Re: For Perl: http://perlmaven.com/perl-tutorial | |
Re: [QUOTE=Lardmeister;473786]My hometown is loaded with Italian restaurants, I am surprised no one has voted Italy yet![/QUOTE]Most of those treaded frozen TV dinners are some kind of Italian fare. Quite a turn-off! | |
Re: Use list slicing and extend(). Hint: mylist = [0,1,2,3,4,5,6,7,8,9] ix = 3 t1 = mylist[0:ix] t2 = mylist[ix+1:] # now use list extend() t2.extend(t1) print(t2) # [4, 5, 6, 7, 8, 9, 0, 1, 2] |