Credit Card Validator Failing Last Two Test Cases | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Credit Card Validator Failing Last Two Test Cases

Any idea as to why the last 2 test cases are not going through, also, any advice on how to simplify the code? https://code.sololearn.com/cAr6c8i4ECfS/?ref=app

22nd Dec 2022, 6:51 AM
Chris
Chris - avatar
7 Answers
+ 2
Try this one https://code.sololearn.com/cWgV0Ym31Mc7/?ref=app And figure out what you missed and your code have lot of comments You don't have to comment every single line of your code and you have to comment why we use it like that not what that code does because that code is self explained For example # return a number return num We can see it returns a number by seeing it we don't need a comment there
22nd Dec 2022, 10:02 AM
Kishor Ramanan
Kishor Ramanan - avatar
+ 2
Chris You're welcome 😊
22nd Dec 2022, 10:07 AM
Kishor Ramanan
Kishor Ramanan - avatar
+ 2
Chris Somehow your pfp mask and my pfp matches xD
22nd Dec 2022, 10:08 AM
Kishor Ramanan
Kishor Ramanan - avatar
+ 2
Chris yeah I'm a big fan for that game series 😂
22nd Dec 2022, 10:11 AM
Kishor Ramanan
Kishor Ramanan - avatar
+ 1
Need some description task about any restrictions You fogot about another numbers in multiply by two
22nd Dec 2022, 8:08 AM
Danila Khaminets
Danila Khaminets - avatar
+ 1
Kishor thank you! I appreciate the advice 🙏
22nd Dec 2022, 10:04 AM
Chris
Chris - avatar
+ 1
Kishor I just realized that 😄 it's from the video game Watch Dogs.
22nd Dec 2022, 10:10 AM
Chris
Chris - avatar