Level 5 - Conversions and Comparisons
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.
Hint
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)
.
What I started with
1 2 3 4 5 6 7 |
|
Lever 4 challenge
Calling lever.data()
will return a string to you. Take this string and concatenate it with a string of " concatenate"
. Submit these two concatenated strings using lever.pull(concatenated_strings)
.
Lever 3 challenge
Submit the inverse bool object returned by pulling lever.data()
to this lever using lever.pull(inversed_bool_object)
. For example, if True
is returned, then you must submit False
.
Lever 2 challenge
Add one 1 +
to the integer returned from running lever.data()
. Then submit this modified int using lever.pull(int_one_plus)
.
Lever 1 challenge
Append the int 1
to the end of the list returned from running lever.data()
. Submit this new list using lever.pull(appended_list)
.
Lever 0 challenge
lever.data() will return a dict
object. Add a key and value pair to this dictionary of "strkey":"strvalue"
and then submit this modified dictionary using lever.pull(modified_dict)
.
Solution:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|