Basically this is correct.
Does not need to be an else clause though, and the instructions don’t mention an else. If those two if statements don’t exit the function with return then you can assume it’s valid.
Basically this is correct.
Does not need to be an else clause though, and the instructions don’t mention an else. If those two if statements don’t exit the function with return then you can assume it’s valid.