You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The provided answer to the Exponentiation assignment in Ep 3 only works for exponents greater than 0. I had expected it work at least for exponents of 0, but seq(0) has a length of 2, which was a bit unexpected. Perhaps exponentiation is therefore not the best example of what you can do with loops (at least not before conditionals allow you to test for negative/positive)?
Cheers,
koen
The text was updated successfully, but these errors were encountered:
Hi all,
The provided answer to the Exponentiation assignment in Ep 3 only works for exponents greater than 0. I had expected it work at least for exponents of 0, but seq(0) has a length of 2, which was a bit unexpected. Perhaps exponentiation is therefore not the best example of what you can do with loops (at least not before conditionals allow you to test for negative/positive)?
Cheers,
koen
The text was updated successfully, but these errors were encountered: