821 B

id, title, challengeType, isRequired, videoId
id title challengeType isRequired videoId
5e7b9f0b0b6c005b0e76f06d Tuples B 11 true dZXzBXUxxCs

Description

More resources: - Exercise

Tests

question:
  text: 'Which does the same thing as the following code:
<pre>lst = []<br>for key, val in counts.items():<br>    newtup = (val, key)<br>    lst.append(newtup)<br><br>lst = sorted(lst, reverse=True)<br>print(lst)<pre>'
  answers:
    - 'print( sorted( [ (k,v) for k,v in counts.items() ] ) )'
    - 'print( [ (k,v) for k,v in counts.items().sorted() ] )'
    - 'print( sorted( [ (k,v) for k,v in counts.keys() ] ) )'
    - 'print( [ (k,v) for k,v in counts.values().sort() ] )'
  solution: 1