Last answered:

27 Dec 2023

Posted on:

24 Dec 2023

0

Resolved: Creating Dictionaries

Why the key is included inside a single quotations while its value inside a double quotation

1 answers ( 1 marked as helpful)
Instructor
Posted on:

27 Dec 2023

0

Hi Asmaa!

Thanks for reaching out.

This is not an indispensable requirement; we only chose to switch between single and double quotes to better illustrate where to write the keys and where - the pairs! As simple as that. But once the difference between the two is clear for you, you can use either single or double quotes, i.e. whatever formatting rules you've chosen to abide by.

Hope this helps.
Best,
Martin

Submit an answer