Course Content
Introduction to Python Video Course
Introduction to Python Video Course
Challenge
Task
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.
Task
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.
Everything was clear?
Challenge
Task
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.
Task
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.
Everything was clear?
Challenge
Task
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.
Task
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.
Everything was clear?
Task
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.