Answer:
A. dict = {‘Name’: ‘Matthew’, ‘Age’: 14, ‘School’: ‘ABC School’}
Explanation:
Since <em>python does not use type when declaring a variable</em>, you must make sure you make your variables correctly or else it won't compile correctly. Lists use braces[]; Strings use quotes, "" or ''; Integers are just declared with a number(s); Dictionaries use brackets{} and inside are <u>attributes of something</u>. For instance, you can use dictionaries to describe ages, {'"Bryan": 6, "Alex": 13, etc.} <u>Sort of like a json file</u>. Dictionaries also tend to use <u>uppercase letters</u> when describing something. The only answer that has all the attributes correct is A. dict = {‘Name’: ‘Matthew’, ‘Age’: 14, ‘School’: ‘ABC School’}
hope i helped :D
Explanation:
Case-sensitivity is inherently faster to parse (albeit only slightly) since it can compare character sequences directly without having to figure out which characters are equivalent to each other. It allows the implementer of a class/library to control how casing is used in the code.
Answer:
<em>SQL Query</em>
///////////////////////////////////////////////////////////////////////////////////////////////////
select Genre_Name, Number_Purchased from Genre
INNER JOIN Tracks on Genre.Genre_Name = Tracks.Genre_Name
WHERE Number_Purchased >= 10 AND Tracks.price >= 1
ORDER BY Number_Purchased ASC;
Explanation:
First off, I selected the required columns from <em>Genre</em> Table.
Then I inner joined <em>Genre</em> table with <em>Tracks</em> table, to get the <em>price</em> of tracks of the corresponding Genres.
Then the required Where conditions are written, which includes one from the <em>Tracks</em> table.
Finally, the Order by statement is written by <em>Number_Purchased</em> column in ascending (ASC) order.