¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

python function

Jahangir Shah Python Inglés

Contenido del mapa

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

Información

Descripción
Python Mapa Mental sobre python function, creado por Jahangir Shah el 02/10/2017.
Creado por
Jahangir Shah
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?