Post Reply 
How does python work?
09-06-2021, 04:37 PM
Post: #1
How does python work?
I recently upgraded my Prime to the latest firmware and I'm trying to understand how to write python functions/scripts. I didn't seem to find much a solution while perusing older threads.

Let's say my script looks like this:

PHP Code:
def func1(ab):
    return 
b

def func2
(ab):
    return 
b

def func3
(abc):
    if 
== 0:
        return 
func1(ab)
    else:
        return 
func2(ab

I know this is a contrived example, but I just want to know how to make it work. The question is, how do I call func3 ?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How does python work? - hamorabi - 09-06-2021 04:37 PM
RE: How does python work? - Dougggg - 09-06-2021, 04:53 PM
RE: How does python work? - hamorabi - 09-06-2021, 05:01 PM
RE: How does python work? - roadrunner - 09-06-2021, 08:15 PM
RE: How does python work? - hamorabi - 09-07-2021, 07:45 AM
RE: How does python work? - roadrunner - 09-07-2021, 12:06 PM
RE: How does python work? - hamorabi - 09-07-2021, 09:24 PM
RE: How does python work? - roadrunner - 09-07-2021, 10:05 PM
RE: How does python work? - hamorabi - 09-08-2021, 10:48 AM
RE: How does python work? - roadrunner - 09-08-2021, 11:08 AM



User(s) browsing this thread: 1 Guest(s)