+1 vote
in Python by

How do I write an if statement in Python?

1 Answer

0 votes
by

An if statement in Python has the following syntax:

sql

if condition:

    # code to execute if condition is True

...