<prompt> Andika chaguo za kukokotoa ili kubadilisha nambari ya heksadesimali iliyotolewa kuwa sawa na desimali.  <response>: def hex_to_desimalnambari: decimal 0 kwa mimi katika anuwailennum: ikiwa numi A: decimal 10 16 lennum-i-1 elif numi B: decimal 11 16 lennum-i-1 elif numi C: desimali 12 16 lennum-i-1 elif numi D: decimal 13 16 lennum-i-1 elif numi E: decimal 14 16 lennum-i-1 elif numi F: decimal 15 16 lennum-i-1 kwingine: desimali intidadii 16 lennum-i-1 kurudi decimal 