Member-only story
Learn Beginner Code In Python For Testing Automation-Part 3
6 min readJun 7, 2022
This is part 3of my learning Python article. For part 1 you can go here. For part 2 you can go here
To recap in part 1 we covered:
- Installing Python
- Installing Code Editor
- Variables and data type
- Receiving and printing input and output to and from the console
- Converting variables to different data types
And in Paret 2 we covered:
- String Methods
- Printing Strings
- Logical Operators
- Comparison Operators
- Arithmetic Operators
Now in Part 3, we will wrap it up with:
- If Statements
- While Loops
- For Loops
If Statements
If statements are used to make decisions in our program. If a certain criterion is met, then we will execute a specific block of code. If the criteria is not met, then that block of code will be skipped. Let’s say you receive a grade in school, and depending on your grade value, you get a specific message.