Conditionals in Python
Conditionals¶ Let us go through conditionals in Python. We typically use “if else” for conditionals. Let us perform a few tasks to understand how conditionals are developed.* Create a variable i with 5. Write a conditional to print whether i is even or odd. In [1]: i = 5 In [2]: # Regular if else if i …