Category «Python»

Selenium with Python

Selenium Web Driver is one of the most used tools for Web UI Automation.Selenium support Python and thus can be utilized for testing.Python APIs provide the ability to connect with the browser through Selenium Installation: Selenium can be installed using pip command easily.You can install selenium like this:

List Comprehension

Python supports a concept called “list comprehensions”. It can be used to construct lists in a very natural, easy way, like a mathematician is used to do.┬áList comprehension is a complete substitute for the lambda function as well as the functions map(), filter() and reduce().Usually we write mathematical collection of prime numbers, even and odd …

How to start with Python

When it comes to learning an object-oriented programming language, you might consider starting with either Python or Java. While Python can be more user-friendly than Java, as it has a more intuitive coding style, both languages do have their unique advantages for developers and end users. However, if you are just beginning your path towards …

Mutable vs immutable

Mutable and immutable are English words meaning “can change” and “cannot change” respectively. The meaning of the words is the same in the IT context; i.e. a mutable string can be changed, and an immutable string cannot be changed Python code: