GoConqr has a new look! Let us know what you think.

Mind map

python function

Jahangir Shah Python English

Map content

python function

  • def my_function(args):   return args + ' world' my_phrase=my_function('hello') print( my_phrase )
  1. define a function

    • def my_function(args):
      • a function has optional parameters
        • in this simple function, we return args and 'world' concatenated
          • return args+' world'
            • >>>indent is important.
              • store the results of a function
                • my_phrase = my_function( 'hello' )
                  • my_phrase is now 'hello world'
                    • printing the results
                      • print( my_phrase )
                        • 'hello world'
                  • send arguments to the function

Information

Description
Python Mind Map on python function, created by Jahangir Shah on 02/10/2017.
Created by
Jahangir Shah
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?