Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Inventory Sorting Capstone Challenge | Variables and Types
Introduction to Python Video Course
course content

Course Content

Introduction to Python Video Course

Introduction to Python Video Course

1. Getting Started
2. Variables and Types
3. Conditional Statements
4. Other Data Types
5. Loops
6. Functions

Inventory Sorting Capstone Challenge

Great job mastering variables, data types, slicing, and concatenation!

Now, let's apply your new skills to a realistic scenario involving organizing new grocery store inventory.

Task

In this challenge, you are managing the inventory of a grocery store. You have a list of new items and their possible categories, along with their prices.

Your task is to organize this information, determine data types, and output formatted statements that list each item's price and category.

Objectives:

  1. Slice the strings into individual items and individual categories.
  2. Create variables to store the prices of each item:
    • The bubblegum_price has a value of $1.50.
    • The chocolate_price has a value of $2.00.
    • The pasta_price has a value of $5.40.
  3. Output formatted statements combining item names, prices, and categories.

Task

In this challenge, you are managing the inventory of a grocery store. You have a list of new items and their possible categories, along with their prices.

Your task is to organize this information, determine data types, and output formatted statements that list each item's price and category.

Objectives:

  1. Slice the strings into individual items and individual categories.
  2. Create variables to store the prices of each item:
    • The bubblegum_price has a value of $1.50.
    • The chocolate_price has a value of $2.00.
    • The pasta_price has a value of $5.40.
  3. Output formatted statements combining item names, prices, and categories.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 2. Chapter 7
toggle bottom row

Inventory Sorting Capstone Challenge

Great job mastering variables, data types, slicing, and concatenation!

Now, let's apply your new skills to a realistic scenario involving organizing new grocery store inventory.

Task

In this challenge, you are managing the inventory of a grocery store. You have a list of new items and their possible categories, along with their prices.

Your task is to organize this information, determine data types, and output formatted statements that list each item's price and category.

Objectives:

  1. Slice the strings into individual items and individual categories.
  2. Create variables to store the prices of each item:
    • The bubblegum_price has a value of $1.50.
    • The chocolate_price has a value of $2.00.
    • The pasta_price has a value of $5.40.
  3. Output formatted statements combining item names, prices, and categories.

Task

In this challenge, you are managing the inventory of a grocery store. You have a list of new items and their possible categories, along with their prices.

Your task is to organize this information, determine data types, and output formatted statements that list each item's price and category.

Objectives:

  1. Slice the strings into individual items and individual categories.
  2. Create variables to store the prices of each item:
    • The bubblegum_price has a value of $1.50.
    • The chocolate_price has a value of $2.00.
    • The pasta_price has a value of $5.40.
  3. Output formatted statements combining item names, prices, and categories.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 2. Chapter 7
toggle bottom row

Inventory Sorting Capstone Challenge

Great job mastering variables, data types, slicing, and concatenation!

Now, let's apply your new skills to a realistic scenario involving organizing new grocery store inventory.

Task

In this challenge, you are managing the inventory of a grocery store. You have a list of new items and their possible categories, along with their prices.

Your task is to organize this information, determine data types, and output formatted statements that list each item's price and category.

Objectives:

  1. Slice the strings into individual items and individual categories.
  2. Create variables to store the prices of each item:
    • The bubblegum_price has a value of $1.50.
    • The chocolate_price has a value of $2.00.
    • The pasta_price has a value of $5.40.
  3. Output formatted statements combining item names, prices, and categories.

Task

In this challenge, you are managing the inventory of a grocery store. You have a list of new items and their possible categories, along with their prices.

Your task is to organize this information, determine data types, and output formatted statements that list each item's price and category.

Objectives:

  1. Slice the strings into individual items and individual categories.
  2. Create variables to store the prices of each item:
    • The bubblegum_price has a value of $1.50.
    • The chocolate_price has a value of $2.00.
    • The pasta_price has a value of $5.40.
  3. Output formatted statements combining item names, prices, and categories.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Great job mastering variables, data types, slicing, and concatenation!

Now, let's apply your new skills to a realistic scenario involving organizing new grocery store inventory.

Task

In this challenge, you are managing the inventory of a grocery store. You have a list of new items and their possible categories, along with their prices.

Your task is to organize this information, determine data types, and output formatted statements that list each item's price and category.

Objectives:

  1. Slice the strings into individual items and individual categories.
  2. Create variables to store the prices of each item:
    • The bubblegum_price has a value of $1.50.
    • The chocolate_price has a value of $2.00.
    • The pasta_price has a value of $5.40.
  3. Output formatted statements combining item names, prices, and categories.

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 7
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt