SKILL BENCHMARK
Python Literacy (Beginner Level)
- 37m 30s
- 25 questions
The Python literacy benchmark will measure your knowledge of getting started with Python. You will be evaluated on your ability to declare variables, use appropriate data types, use flow control statements, and perform operations with complex data types such as List, Tuples, Dictionaries, and Sets. You will also be assessed on your knowledge of how to use built-in functions and implement advanced features of Python functions. A learner who scores high on this benchmark demonstrates that they have the skills to write Python programs and develop applications using Python code.
Topics covered
- add, remove, sort, and reverse elements from a list
- apply generators to create infinite sequences
- code for loops to iterate over values in a tuple and the keys and values in a dictionary
- convert lists to dictionaries and vice versa
- create new lists from existing lists using slicing operations
- define decorators to modify pre-existing code
- define, invoke, and discard lambdas
- define, invoke, and name functions
- execute Python code to perform simple calculations
- generate a sequence of consecutive integers with the range function
- identify how to use the if-else statement to make decisions involving complex data types such as lists, tuples, and dictionaries
- iterate over a list of elements using while loops
- modify and update dictionaries using dictionary methods
- perform shallow and deep copies of sets
- perform shallow and deep copies of tuples
- perform union, intersection, difference, and other set operations
- recall how to convert between various complex datatypes and view base conversions using the Python built-in functions
- reference global variables from within a function
- specify conditions in list comprehensions in order to filter elements used in the source list and to define the values in the newly created list
- specify the similarities between lists and tuples
- use built-in functions in Python to perform operations
- use the break statement in multiple scenarios to break out of a while loop and recognize the use of the pass keyword within such loops
- use the continue statement along with the break statement within the same for loop
- work with floats, integers, Booleans, and strings
- work with the random and datetime modules in Python