| | |
Issue with Python
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Dec 2006
Posts: 1,054
Reputation:
Solved Threads: 297
I think you would use a function and pass variables to it. So if the Laplace operator is a+b-c you could do something like If this isn't even close to what you want, post some sample data and describe what you want to do with it
Python Syntax (Toggle Plain Text)
def laplace_func(a, b, c): return a+b-c # if __name__ == '__main__': laplace_list=[ [1 ,2 ,3], [3, 2, 1], [1, 3, 2]] for eachlist in laplace_list: result = laplace_func(eachlist[0], eachlist[1], eachlist[2]) print "result =", result, "for", eachlist
![]() |
Similar Threads
- Python for Laptop Robot Speech recognition and TTS. (Python)
- Speeding up Python (Python)
- Re: ctypes(python 2.5) cant work in win2000 platform!!! (Python)
- My computer was reformatted, and i've lost all python related stuff. (Python)
- Dictionary Sorting? (Python)
- Handling unicode values in python. (Python)
- Python Imaging (Python)
- see my errors :-( (Python)
- simple cgi script issue (Python)
Other Threads in the Python Forum
- Previous Thread: How to pass the parameters to a script?
- Next Thread: URL conversion
| Thread Tools | Search this Thread |
Tag cloud for Python
alarm assignment avogadro beginner bluetooth character cmd code copy customdialog cx-freeze data decimals dictionary directory dynamic error examples excel exe file float format function generator gnu graphics gui halp homework http ideas import input itunes java leftmouse line linux list lists logging loop maze module mouse number numbers output parsing path port prime program programming projects push py2exe pygame pyglet pyqt python random recursion schedule screensaverloopinactive script scrolledtext slicenotation sqlite ssh stdout string strings sudokusolver table terminal text thread threading time tkinter tlapse tuple tutorial ubuntu unicode update urllib urllib2 variable ventrilo verify vigenere web webservice wikipedia windows wxpython xlib






