Closed Sivaranjitha2002 closed 4 months ago
Hi @Sivaranjitha2002, an elif
is the correct conditional expression in this case. An elif
is optimized by the Python interpreter over the separated if
statements. It also better represents the relationship between the conditionals and avoids bugs in future changes if an else
is added to block. I don't think we'll be accepting this, but thanks for the contribution.
change uneccessary 'elif' condition as 'if' condition