Coding Challenge
Let’s solve a small coding challenge in Python while using Transcrypt.
We'll cover the following
Problem statement
In this challenge, write the functions in external_jq2.py
that are imported by external_jq.py
.
We need to add these two functions:
append_ol
: Use jQuery’sappend
method to add anitem
to theol
element.click_button
: Use jQuery’sclick
method on the#append_btn
element to call thecallback
function, which in this case is theadd_item
function.
Get hands-on with 1400+ tech skills courses.