CodeNewbie Community 🌱

Sarah Dye
Sarah Dye

Posted on • Updated on

How to Solve the Identifying Some Vairables

Skillcrush has students do a challenge where they practice identifying variables in a scenario. In this scenario, Becky is the maid of honor at her best friend’s wedding. She is trying to figure out the bridesmaid ensembles so it will work for all the bridesmaids.

Below is the scenario Skillcrush gives students.

Some of them want a strapless dress, while others want a halter top or spaghetti straps. Some want a long dress, and some want tea-length. The bride doesn't care what color the dresses are, so long as they are one of her colors (persimmon, clover, or silver) and so long as the bags and shoes are the same color.

The one thing they can all agree on is that they want flat shoes that are good for dancing, but whether they are Mary Jane or ballet flats is still up for discussion.


So what are some of the variables you might find in this situation? There are 7 variables students can find in this scenario. Here’s a list of the 7 variables you can find in this scenario.

STORE dress top type 
STORE dress length
STORE dress color 
STORE shoe color 
STORE shoe type
STORE bag color
Enter fullscreen mode Exit fullscreen mode

These are good variable choices because the values will vary for each bridesmaid since there are multiple options for each item.

This post was originally published on June 6, 2021 on DEV. I made minor changes to the original post for CodeNewbie.

Top comments (0)