How to code solution in python

Tell us what’s happening:
Describe your issue in detail here.
I want to code the solution in python. Is it possible ?
Your code so far

function updateInventory(arr1, arr2) {
return arr1;

// Example inventory lists
var curInv = [
[21, "Bowling Ball"],
[2, "Dirty Sock"],
[1, "Hair Pin"],
[5, "Microphone"]

var newInv = [
[2, "Hair Pin"],
[3, "Half-Eaten Apple"],
[67, "Bowling Ball"],
[7, "Toothpaste"]

updateInventory(curInv, newInv);
**Your browser information:**

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36.

Challenge: Inventory Update

Link to the challenge:

You are welcome to write it in Python. But FreeCodeCamp can only check JavaScript solutions.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.