Level 4 - Data Types
Objective
Pull ALL of the levers by submitting the requested data for each using lever.pull(data)
to disable the Yeeter trap at the KringleCon entrance.
Hints
Move the elf to the lever. Get the lever data lever.data()
and perform the appropriate action to the data. Submit the modified data using lever.pull(modified_data)
.
This level requires you to check and convert variable data types (bool, int, str, float, list, dict, etc.) This link should prove useful. Some data type examples include:
10
- This has a data type ofint
"Hello World"
- This has a data type ofstr
[1,2,3]
- This has a data type oflist
. This list contains threeint
objects.
What I started with:
1 2 3 4 5 6 7 8 |
|
All the levers here asked to send it a specific datatype. Strings, booleans, integers, lists, and dictionaries.
Solution:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|