Member-only story
Learn Beginner Code In Python For Testing Automation-Part 2
8 min readMay 30, 2022
This is part 2 of my learning Python article. For part 1 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
Now that we have the basics, we can continue to progress. This article will cover
- String Methods
- Printing Strings
- Logical Operators
- Comparison Operators
- Arithmetic Operators
String(str) Methods
Python is an example of an object-oriented programming language. Meaning many aspects of it, deal with objects. An example of an object is when we create a str in our program. Just like objects in the real world, objects in our code can do different things and have different types of functionality.
Type the following code into your editor
teacher = "The Test Lead" #create a string
teacher.