Selenium Python

selenium python

Selenium Python : Today, companies and applications are widely structured on web-based systems. The information that these systems contain is dense and requires extensive processing. Various tasks are repeated, tedious and take a lot of time and money. These repeated tasks can be taken care by Web Automation. The common tasks in web automation includes form filling, screen scraping, data collection, transfer between applications, website testing and periodic reports generation. Web Automation Tool There are many tools available for automation. A

Read more

Python vs. R

Python Vs. R

Python vs. R : R and Python are the most popular programming languages used by data analysts and data scientists. Both are free and open source and were developed in the early 1990s—R for statistical analysis and Python as a general-purpose programming language. In the first, I will cover the vital aspect of python language after that covers important aspect in R language. About Python: Python is a high-level, interpreted, general-purpose programming language. Python programming language has been created by

Read more

Shallow Copy and Deep Copy

Copy in python

Copy in python : Shallow Copy and Deep Copy  In Python programming, many times we need to make a copy of variable(s). In orders to make copy different methods are available in the Python programming.  Let’s take the example of the integer. >>> a = 10 >>> b = 10 >>> id(a) 140730625348928 >>> id(b) 140730625348928 >>> >>> x = 257 >>> y = 257 >>> id(x) 2067355160528 >>> id(y) 2067355160432 >>> If an integer value is less than 256

Read more

Python Threading – Part 2

Python threading

Python Threading In the previous article, you have seen the threading methods. In this article, you will see daemon threads and locks. Daemon Thread: So far, we have created the non-daemon thread. What is the daemon thread? When the main thread exits, it attempts to terminate all of its daemonic child threads. Consider an example of GUI as shown below Consider, by GUI input some calculation is being performed in the background and the calculation is taking its time. If you

Read more

Python Thread – Part 1

Python Thread

Python Thread A Python thread is like a process, and may even be a process, depending on the Python thread system. In fact, Python threads are sometimes called “lightweight” processes, because threads occupy much less memory, and take less time to create than do processes. Threads allow applications to perform multiple tasks at once. Multi-threading is important in many applications. In python, threading module is used to create the threads. In order to create threads, threading modules can be used

Read more

What is Python Enumerate?

Python Enumerate

Python Enumerate : python enumerate() is basically a python built in function. During certain situations where we deal with lot of iterators we also need to keep count of iterations, in these type of situations python built in function Enumerate comes handy. It helps to add counter to the iterable and returns an enumerate object. The basic syntax :- enumerate(iterable, start=0) The enumerate() function takes two parameters namely : iterable – It is a sequence, an iterator or objects which

Read more

Python Time

Python Time Time

Python Time :  In this article, we’ll see how to use Python’s modules which are related to the time and date. In this python time article we will cover lots of problem like current time, previous time, time gap, epoch time etc. Let us start with the python time first module time. Python Time – Time: First import the time module. Then we will study some important functions of time modules. The time() function The time() function returns the float

Read more

Python modules related to datetime

python datetime

Python datetime modules: In this article, we will see the Python datetime module. We will learn how to create current time, how to calculate the time gap and how to produce time difference?According to Python docs “The python datetime module supplies classes for manipulating dates and times in both simple and complex ways”. So,python datetime modules contains several classes. Let us discuss one by one. Python datetime Modules – The Datetime.datetime Let us discuss the useful methods of datetime.datetime class.

Read more

Python Dictionary

Python Dictionary

Python Dictionary : A Python dictionary is a sequence of key/value or item pairs separated by commas. A Python dictionary is created by using curly braces ( { } ). Syntax to create empty dictionary. < variable-name > = {} Or < variable-name > = dict() Syntax to create Python dictionary with items <variable-name> = { key : value , key : value } The pair of key and value is called item, key and value are separated by colon ( :

Read more

Python For Loop

Python For Loop

Python for Loop Python For Loop – In programming, to repeat an action, loops are used. In Python programming for loop is used to iterate the sequences. In Python, sequences are like String, tuple lists etc. In this article, we will explore the for loop use cases with the interesting examples. This article contains the following topics. for loop with xrange() for loop with Sequences List comprehension Reading the file Nested for loop Python For Loop – for loop with

Read more

Site Footer