Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Luhn Formula
#4
@volcano63 noted that it will work even without explicit conversion to list here card_number = list(reversed(input("enter card number: ")))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Luhn Formula - by vdv34czx - May-17-2018, 05:30 AM
RE: Luhn Formula - by ThiefOfTime - May-17-2018, 06:53 AM
RE: Luhn Formula - by buran - May-17-2018, 07:30 AM
RE: Luhn Formula - by buran - May-17-2018, 08:05 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020