165,145 views
7 votes
7 votes
Can someone please tell me what I’m doing wrong ? Please and it’s due on Thursday!!

Can someone please tell me what I’m doing wrong ? Please and it’s due on Thursday-example-1
Can someone please tell me what I’m doing wrong ? Please and it’s due on Thursday-example-1
Can someone please tell me what I’m doing wrong ? Please and it’s due on Thursday-example-2
User Burak Cakir
by
2.9k points

1 Answer

9 votes
9 votes

Answer:

Sure. In Unit test 5, it's looking for 1 instead of 0. You are returning 0 instead of 1.

0 requires 1 digit to express it and should therefore return 1.

In line 6, change the 0 to a 1.

User Remy
by
3.1k points