# Learn How to Work with Numbers and Strings by Implementing the Luhn Algorithm - Step 19

**URL:** <https://forum.freecodecamp.org/t/learn-how-to-work-with-numbers-and-strings-by-implementing-the-luhn-algorithm-step-19/674297>\
**Category:** General\
**Tags:** deutsch\
**Created:** [February 22, 2024, 9:28am UTC](https://forum.freecodecamp.org/t/learn-how-to-work-with-numbers-and-strings-by-implementing-the-luhn-algorithm-step-19/674297 "2024-02-22T09:28:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdulmajiddawi](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/abdulmajiddawi/32/350416_2.png) [@Abdulmajiddawi](https://forum.freecodecamp.org/u/Abdulmajiddawi)\
**Post date:** [February 22, 2024, 9:28am UTC](https://forum.freecodecamp.org/t/learn-how-to-work-with-numbers-and-strings-by-implementing-the-luhn-algorithm-step-19/674297/1 "2024-02-22T09:28:42Z")

</div>

### Tell us what’s happening:

Describe your issue in detail here.

### Your code so far

```py

# User Editable Region

def verify_card_number(card_number):
    sum_of_odd_digits = 0
    card_number_reversed = card_number[::-1]

    odd_digits = card_number_reversed[::2]

    print(odd_digits)
    

# User Editable Region

def main():
    card_number = '4111-1111-4555-1142'
    card_translation = str.maketrans({'-': '', ' ': ''})
    translated_card_number = card_number.translate(card_translation)

    verify_card_number(translated_card_number)

main()

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36`

### Challenge Information:

Learn How to Work with Numbers and Strings by Implementing the Luhn Algorithm - Step 19

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/scientific-computing-with-python/learn-how-to-work-with-numbers-and-strings-by-implementing-the-luhn-algorithm/step-19)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![Teller](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/teller/32/412338_2.png) [@Teller](https://forum.freecodecamp.org/u/Teller)\
**Post date:** [February 22, 2024, 9:32am UTC](https://forum.freecodecamp.org/t/learn-how-to-work-with-numbers-and-strings-by-implementing-the-luhn-algorithm-step-19/674297/2 "2024-02-22T09:32:58Z")

</div>

Welkom op het forum @Abdulmajiddawi

Je moet een for-lus toevoegen

Veel codeerplezier

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 7, 2025, 2:23pm UTC](https://forum.freecodecamp.org/t/learn-how-to-work-with-numbers-and-strings-by-implementing-the-luhn-algorithm-step-19/674297/3 "2025-01-07T14:23:43Z")

</div>


