Timeline for Confusion regarding def function within Python
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 29, 2012 at 1:22 | comment | added | Jordan | That edit is wrong. You have now coded 4 lines of Python in your life. | |
Jul 28, 2012 at 21:21 | comment | added | Martin Beckett | @kevin and the reason this is necessary is that the function migth be put in a library and used by someone else - so it's important that the name of the params is just a token fro whatever is passed in | |
Jul 28, 2012 at 1:41 | history | edited | user28988 | CC BY-SA 3.0 |
edited body
|
Jul 25, 2012 at 12:00 | comment | added | Kevin | I was trying to type code in the comment, and it wasn't allowing me..than it wouldn't allow me to edit because of the 5 minute rule..what I wanted to say was thank you for your response. | |
Jul 25, 2012 at 11:54 | comment | added | Kevin | so let's say we do something like this <br> def doSomethingWithParams(params): params.doSomething() x = "whatever" y = "whatever" | |
Jul 25, 2012 at 11:40 | history | answered | Deiwin | CC BY-SA 3.0 |