+ 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 Antworten
+ 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.