Skip to content

Comments

Грезин Данил Максимович Б41#26

Open
Snaffys wants to merge 20 commits intopython-course-matmex:mainfrom
Snaffys:main
Open

Грезин Данил Максимович Б41#26
Snaffys wants to merge 20 commits intopython-course-matmex:mainfrom
Snaffys:main

Conversation

@Snaffys
Copy link

@Snaffys Snaffys commented Oct 27, 2025

Add basic files
Change lunh and pow algorithm logic
Change and add tests
Add console input
Format code

Bugs:
- Was multiplying result by itself instead of base
- Didn't handle odd pow correctly
- Incorrectly processed pow of 1
- Check if power is integer
- Check if power isn't below zero
- Return 1 if pow is 0
- Return number if pow is 1
Bugs:
- Wrong parity calculation
- Wrong doubled calculation
- Wrong else case
- Card number should only consist of digits
- Length of card number must be >= 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant