Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(curriculum): improve tests and instructions for Expense Tracker project #54624

Merged
merged 16 commits into from
May 23, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ my_dict = {'amount': 50.0, 'category': 'Food'}
my_dict['amount'] # 50.0
```

You are currently interpolating the `expense` dictionary in your f-string. Modify the f-string expression to access the value of the `'amount'` key and the `'category'` key in the `expense` dictionary. Remember to use double quotes within your single-quoted f-string and vice versa.
You are currently interpolating the `expense` dictionary in your f-string. Modify the f-string expression to access the value of the `'amount'` key and the `'category'` key in the `expense` dictionary.

An important thing to know is that the same type of quote used to define a string cannot be used inside it. For example, the string `'I'm a string!'` is not valid. To use the single quote inside that string you should either:

- Escape the quote by prepending a backlash to it: `'I\'m a string!'`
- Or use double quotes to define the string: `"I'm a string!"`

with the latter being the preferred option.
Dario-DC marked this conversation as resolved.
Show resolved Hide resolved

# --hints--

Expand Down