Skip to content
← Back to Community
if statement
Profile icon
karimbox222

this is my first practice
is it well ?

Voters
Profile icon
ssutheg873
Profile icon
karimbox222
Comments
hotnewtop
Profile icon
Roar123

Yep it seems like you used the if statement correctly. Here's an example for you with if, elif, and else.

if expression: statement elif another expression: statement else: statement

The statement in the if clause only evaluates if true and the statement in elif only evaluates if the if clause is false and the elif is true. Else covers all of the possibilities where the if and elif are false.