Python – if…else statement
In this article, we will learn how to alter the flow of code based on the conditional expression using the if…else statement. (more…)
Python – if…elif…else statement
In this article, we will learn how to alter the flow of code in multiple directions based on the conditional expression using the if…elif…else statement. (more…)
Python: if-else in one line – ( A Ternary operator )
In this article, we will learn how to use if-else in one line in python. (more…)