Python for Testers #20 - How to use If Else in Python

preview_player
Показать описание
In this Python for Testers Tutorial we will learn how to use If Else in python. It is very important to understand python if else and know how to you can use it in Python programming or selenium with python automation.

The if else syntax in Python for a simple if statement is as follows:

if condition :
indented Statement Block (Indentation is important)

As python relies on indentation and not curly braces to define scope as in other language like Java, you can read the above syntax as, If the condition is evaluated to true, then execute the indented statements and if the condition is not evaluated to true, then skip the indented statements.

Help me in spreading the knowledge, please hit LIKE, SHARE, and SUBSCRIBE for the latest tutorials. More tutorial playlists below:

🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶

🔶 FOLLOW US ON TWITTER 🔶

🔶 LIKE US ON FACEBOOK 🔶

🔶 OUR TUTORIAL WEBSITES 🔶

🔶 GET MY TRAININGS ON UDEMY 🔶

#PythonForTesters #PythonTutorial #PythonForBeginners #Python #SeleniumPythonTutorial #TestAutomation #RcvAcademy #SoftwareTestingMentor

Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

This was a good example, appreciate your dedication as a mentor.

ricceef
Автор

And if your score = 90, you get nothing though you're so successful. That's not fair. ;-) Snare of comparisons. Maybe it would be helpful pointing at those snares. But well done.

christinestockert
Автор

Watching it in 2024 for automation . It's really helpful . Is this methods still working in 2024 ?

yashpatil