Зміст курсу
Introduction to Python Video Course
Introduction to Python Video Course
Challenge
Ready to put everything you've learned into practice? This challenge will require you to use the and
, or
, and not
operators as well as boolean comparison operators to manage a complex scenario for a grocery store.
Let's dive in!
Завдання
You need to determine if a grocery item should be discounted based on its seasonal status, stock level, and sales performance.
- Use the predefined conditions to determine if an item is at risk of being overstocked by checking if it is seasonal and its stock exceeds a specific threshold. If the item is
seasonal
and
thecurrent_stock
is greater than thehigh_stock_threshold
, then the boolean variableoverstockRisk
should becomeTrue
. - Evaluate if an item is eligible for a discount based on its sales performance and whether it is already on sale. Check if the item is
not
selling_well
and
not
alreadyon_sale
. - Decide if the item should be discounted based on the overstock risk or its discount eligibility results. The
makeDiscount
boolean variable should becomeTrue
if eitheroverstockRisk
or
discountEligible
isTrue
. - Print whether the item should be discounted based on the final combined condition -
makeDiscount
.
Завдання
You need to determine if a grocery item should be discounted based on its seasonal status, stock level, and sales performance.
- Use the predefined conditions to determine if an item is at risk of being overstocked by checking if it is seasonal and its stock exceeds a specific threshold. If the item is
seasonal
and
thecurrent_stock
is greater than thehigh_stock_threshold
, then the boolean variableoverstockRisk
should becomeTrue
. - Evaluate if an item is eligible for a discount based on its sales performance and whether it is already on sale. Check if the item is
not
selling_well
and
not
alreadyon_sale
. - Decide if the item should be discounted based on the overstock risk or its discount eligibility results. The
makeDiscount
boolean variable should becomeTrue
if eitheroverstockRisk
or
discountEligible
isTrue
. - Print whether the item should be discounted based on the final combined condition -
makeDiscount
.
Все було зрозуміло?
Challenge
Ready to put everything you've learned into practice? This challenge will require you to use the and
, or
, and not
operators as well as boolean comparison operators to manage a complex scenario for a grocery store.
Let's dive in!
Завдання
You need to determine if a grocery item should be discounted based on its seasonal status, stock level, and sales performance.
- Use the predefined conditions to determine if an item is at risk of being overstocked by checking if it is seasonal and its stock exceeds a specific threshold. If the item is
seasonal
and
thecurrent_stock
is greater than thehigh_stock_threshold
, then the boolean variableoverstockRisk
should becomeTrue
. - Evaluate if an item is eligible for a discount based on its sales performance and whether it is already on sale. Check if the item is
not
selling_well
and
not
alreadyon_sale
. - Decide if the item should be discounted based on the overstock risk or its discount eligibility results. The
makeDiscount
boolean variable should becomeTrue
if eitheroverstockRisk
or
discountEligible
isTrue
. - Print whether the item should be discounted based on the final combined condition -
makeDiscount
.
Завдання
You need to determine if a grocery item should be discounted based on its seasonal status, stock level, and sales performance.
- Use the predefined conditions to determine if an item is at risk of being overstocked by checking if it is seasonal and its stock exceeds a specific threshold. If the item is
seasonal
and
thecurrent_stock
is greater than thehigh_stock_threshold
, then the boolean variableoverstockRisk
should becomeTrue
. - Evaluate if an item is eligible for a discount based on its sales performance and whether it is already on sale. Check if the item is
not
selling_well
and
not
alreadyon_sale
. - Decide if the item should be discounted based on the overstock risk or its discount eligibility results. The
makeDiscount
boolean variable should becomeTrue
if eitheroverstockRisk
or
discountEligible
isTrue
. - Print whether the item should be discounted based on the final combined condition -
makeDiscount
.
Все було зрозуміло?
Challenge
Ready to put everything you've learned into practice? This challenge will require you to use the and
, or
, and not
operators as well as boolean comparison operators to manage a complex scenario for a grocery store.
Let's dive in!
Завдання
You need to determine if a grocery item should be discounted based on its seasonal status, stock level, and sales performance.
- Use the predefined conditions to determine if an item is at risk of being overstocked by checking if it is seasonal and its stock exceeds a specific threshold. If the item is
seasonal
and
thecurrent_stock
is greater than thehigh_stock_threshold
, then the boolean variableoverstockRisk
should becomeTrue
. - Evaluate if an item is eligible for a discount based on its sales performance and whether it is already on sale. Check if the item is
not
selling_well
and
not
alreadyon_sale
. - Decide if the item should be discounted based on the overstock risk or its discount eligibility results. The
makeDiscount
boolean variable should becomeTrue
if eitheroverstockRisk
or
discountEligible
isTrue
. - Print whether the item should be discounted based on the final combined condition -
makeDiscount
.
Завдання
You need to determine if a grocery item should be discounted based on its seasonal status, stock level, and sales performance.
- Use the predefined conditions to determine if an item is at risk of being overstocked by checking if it is seasonal and its stock exceeds a specific threshold. If the item is
seasonal
and
thecurrent_stock
is greater than thehigh_stock_threshold
, then the boolean variableoverstockRisk
should becomeTrue
. - Evaluate if an item is eligible for a discount based on its sales performance and whether it is already on sale. Check if the item is
not
selling_well
and
not
alreadyon_sale
. - Decide if the item should be discounted based on the overstock risk or its discount eligibility results. The
makeDiscount
boolean variable should becomeTrue
if eitheroverstockRisk
or
discountEligible
isTrue
. - Print whether the item should be discounted based on the final combined condition -
makeDiscount
.
Все було зрозуміло?
Ready to put everything you've learned into practice? This challenge will require you to use the and
, or
, and not
operators as well as boolean comparison operators to manage a complex scenario for a grocery store.
Let's dive in!
Завдання
You need to determine if a grocery item should be discounted based on its seasonal status, stock level, and sales performance.
- Use the predefined conditions to determine if an item is at risk of being overstocked by checking if it is seasonal and its stock exceeds a specific threshold. If the item is
seasonal
and
thecurrent_stock
is greater than thehigh_stock_threshold
, then the boolean variableoverstockRisk
should becomeTrue
. - Evaluate if an item is eligible for a discount based on its sales performance and whether it is already on sale. Check if the item is
not
selling_well
and
not
alreadyon_sale
. - Decide if the item should be discounted based on the overstock risk or its discount eligibility results. The
makeDiscount
boolean variable should becomeTrue
if eitheroverstockRisk
or
discountEligible
isTrue
. - Print whether the item should be discounted based on the final combined condition -
makeDiscount
.