+ 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
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
+ 2
Chris You're welcome đ
+ 2
Chris Somehow your pfp mask and my pfp matches xD
+ 2
Chris yeah I'm a big fan for that game series đ
+ 1
Need some description task about any restrictions
You fogot about another numbers in multiply by two
+ 1
Kishor thank you! I appreciate the advice đ
+ 1
Kishor I just realized that đ it's from the video game Watch Dogs.