if I change the error above to elif instead, the last else becomes an error. (photo below)
If I end both with elif, there’s no error. Is it alright to end with elif instead of else?
if I change the error above to elif instead, the last else becomes an error. (photo below)
If I end both with elif, there’s no error. Is it alright to end with elif instead of else?
It is fine to end it with elif. You could also remove the condition, like this →
else {
}
Or end it like this →
elif (condition) {
}
Closed by OP request.