Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Single Return Value | Function Return Value Specification
Python Functions Tutorial
course content

Contenido del Curso

Python Functions Tutorial

Python Functions Tutorial

1. What is Function in Python?
2. Positional and Optional Arguments
3. Arbitrary Arguments
4. Function Return Value Specification
5. Recursion and Lambda Functions

bookSingle Return Value

A single return value of a function in Python refers to the practice of returning a single object or value from a function. We have already used this type of return value in previous sections. Let's refresh our knowledge and solve a task.

Note

The join() function in Python is used to join the elements of an iterable, such as a list, into a single string. Learn more about the join function here.

Tarea

Your task is to create a function that merges strings in different lists and returns the resulting string as an output.

  1. You have to use arbitrary arguments because we don't know the number of lists to merge.
  2. Iterate all lists to merge the strings inside the function body.
  3. Return the resulting string using return keyword.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 4. Capítulo 1
toggle bottom row

bookSingle Return Value

A single return value of a function in Python refers to the practice of returning a single object or value from a function. We have already used this type of return value in previous sections. Let's refresh our knowledge and solve a task.

Note

The join() function in Python is used to join the elements of an iterable, such as a list, into a single string. Learn more about the join function here.

Tarea

Your task is to create a function that merges strings in different lists and returns the resulting string as an output.

  1. You have to use arbitrary arguments because we don't know the number of lists to merge.
  2. Iterate all lists to merge the strings inside the function body.
  3. Return the resulting string using return keyword.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 4. Capítulo 1
toggle bottom row

bookSingle Return Value

A single return value of a function in Python refers to the practice of returning a single object or value from a function. We have already used this type of return value in previous sections. Let's refresh our knowledge and solve a task.

Note

The join() function in Python is used to join the elements of an iterable, such as a list, into a single string. Learn more about the join function here.

Tarea

Your task is to create a function that merges strings in different lists and returns the resulting string as an output.

  1. You have to use arbitrary arguments because we don't know the number of lists to merge.
  2. Iterate all lists to merge the strings inside the function body.
  3. Return the resulting string using return keyword.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

A single return value of a function in Python refers to the practice of returning a single object or value from a function. We have already used this type of return value in previous sections. Let's refresh our knowledge and solve a task.

Note

The join() function in Python is used to join the elements of an iterable, such as a list, into a single string. Learn more about the join function here.

Tarea

Your task is to create a function that merges strings in different lists and returns the resulting string as an output.

  1. You have to use arbitrary arguments because we don't know the number of lists to merge.
  2. Iterate all lists to merge the strings inside the function body.
  3. Return the resulting string using return keyword.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 4. Capítulo 1
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
some-alt