GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

python function

Jahangir Shah Python Englisch

Inhalt der Mindmap

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

Informationen

Beschreibung
Python Mindmap am python function, erstellt von Jahangir Shah am 02/10/2017.
Erstellt von
Jahangir Shah
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck