Question: I am trying to run a python script from within a docker container on windows7.

The python scripts loads a DLL library and calls some functions in it according to the (\_\_stdcall) convention. I am using ctypes in python to call functions. The script is working fine when i run it from python but it is just giving me an error while runned from a docker container. 

Loading of the library 

```
dll = ctypes.WinDLL("c:\\weCat3D\\weCat3D\\EthernetScanner\\EthernetScanner")

```

Error from docker container

```
AttributeError: 'module' object has no attribute 'windll'

```

what is the wrong thing I am doing?

Answer: 
I made a working example for you.

```js
$('.inputs').each(function(){
  $(this).on('change keyup', function(){
    let sumTotal = 0;
    $('.inputs').each(function(){
      sumTotal += $(this).val() * +$(this).parent().next().data('price');
    });
    $('.total').text(`${sumTotal} $`);
  });
});
```

```css
td:nth-child(3),
th:nth-child(3){
  text-align:center;
}
```

```html
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
  <body>
    <div class="container">
      <div class="row justify-content-center">
        <div class="col-12">
        <table class="table table-hover">
          <thead>
            <tr>
              <th></th>
              <th>QTY</th>
              <th>Amount</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>Child</td>
              <td><input type="number" class="inputs form-control" value="0" min="0" max="999"></td>
              <td class="price" data-price="150">150 $</td>
            </tr>
            <tr>
              <td>Adult</td>
              <td><input type="number" class="inputs form-control" value="0" min="0" max="999"></td>
              <td class="price" data-price="200">200 $</td>
            </tr>
            <tr>
              <td>Adult Plus</td>
              <td><input type="number" class="inputs form-control" value="0" min="0" max="999"></td>
              <td class="price" data-price="250">250 $</td>
            </tr>
            <tr>
              <td>Total - </td>
              <td></td>
              <td class="total">0.00 $</td>
            </tr>
          </tbody>
        </table>
        </div>
      </div>
    </div>
  </body>
</html>
```

(<https://codepen.io/bichiko/pen/JQWomy>)
This is axample of yours problem, try using object

```js
var data = {a:0, b:0, c: 0} 

function one (){
  data.a = data.a + 10
  console.log(data.a)
  total()
}

function two (){
  data.b = data.b + 10
  total()
  console.log(data.b)
}

function three () {
  data.c = data.c + 30
  total()
  console.log(data.c)
}

function total () {
  var totaly = data.a + data.b + data.c
  console.log('Total input :', totaly)
}
```

```html
<button onclick="one()"> get A </button>
<button onclick="two()"> get B</button>
<button onclick="three()"> get  C </button>
```