Contenido del Curso
Introduction to Python Video Course
Introduction to Python Video Course
Challenge
Tarea
In this challenge, you’ll create a function to update the inventory of a grocery store by adding new products. You’ll pass the new products as arguments to the function and the function will combine them with the existing inventory list.
Task:
- Define a Function: Use the proper keyword to define a function named
inventory_update
. - Complete the Return Statement: Return the update inventory variable from the function.
- Call the Function with Arguments: Inside the
print()
statement, call theinventory_update
function withcurrent_inventory
as the argument.
Tarea
In this challenge, you’ll create a function to update the inventory of a grocery store by adding new products. You’ll pass the new products as arguments to the function and the function will combine them with the existing inventory list.
Task:
- Define a Function: Use the proper keyword to define a function named
inventory_update
. - Complete the Return Statement: Return the update inventory variable from the function.
- Call the Function with Arguments: Inside the
print()
statement, call theinventory_update
function withcurrent_inventory
as the argument.
¿Todo estuvo claro?
Challenge
Tarea
In this challenge, you’ll create a function to update the inventory of a grocery store by adding new products. You’ll pass the new products as arguments to the function and the function will combine them with the existing inventory list.
Task:
- Define a Function: Use the proper keyword to define a function named
inventory_update
. - Complete the Return Statement: Return the update inventory variable from the function.
- Call the Function with Arguments: Inside the
print()
statement, call theinventory_update
function withcurrent_inventory
as the argument.
Tarea
In this challenge, you’ll create a function to update the inventory of a grocery store by adding new products. You’ll pass the new products as arguments to the function and the function will combine them with the existing inventory list.
Task:
- Define a Function: Use the proper keyword to define a function named
inventory_update
. - Complete the Return Statement: Return the update inventory variable from the function.
- Call the Function with Arguments: Inside the
print()
statement, call theinventory_update
function withcurrent_inventory
as the argument.
¿Todo estuvo claro?
Challenge
Tarea
In this challenge, you’ll create a function to update the inventory of a grocery store by adding new products. You’ll pass the new products as arguments to the function and the function will combine them with the existing inventory list.
Task:
- Define a Function: Use the proper keyword to define a function named
inventory_update
. - Complete the Return Statement: Return the update inventory variable from the function.
- Call the Function with Arguments: Inside the
print()
statement, call theinventory_update
function withcurrent_inventory
as the argument.
Tarea
In this challenge, you’ll create a function to update the inventory of a grocery store by adding new products. You’ll pass the new products as arguments to the function and the function will combine them with the existing inventory list.
Task:
- Define a Function: Use the proper keyword to define a function named
inventory_update
. - Complete the Return Statement: Return the update inventory variable from the function.
- Call the Function with Arguments: Inside the
print()
statement, call theinventory_update
function withcurrent_inventory
as the argument.
¿Todo estuvo claro?
Tarea
In this challenge, you’ll create a function to update the inventory of a grocery store by adding new products. You’ll pass the new products as arguments to the function and the function will combine them with the existing inventory list.
Task:
- Define a Function: Use the proper keyword to define a function named
inventory_update
. - Complete the Return Statement: Return the update inventory variable from the function.
- Call the Function with Arguments: Inside the
print()
statement, call theinventory_update
function withcurrent_inventory
as the argument.