data science

Which is python online compiler for data science

Welcome everyone, if you want to compile your program in super fast compiler then click on below button.

What is an Online Compiler?

For various programming languages like C, C++, python and java required to compile program in every time so some online compiler is available for that. Python Online compiler are the small tool allow to the user to compile source codes and execute them through online way. It mostly totally depend on you choice or your requirement. For beginner, it is good to option to unconventional ranged facility providing to compiler.
There are expert-level programming may be charged but few compiler affording free coding for entry- base level user. tutorials point online compiler python is one of the most popular and tested website which support various programming language in python.

Which is python online compiler for data science

What is Python Online Compiler

Most of the programming language are based on the compiler or interpreter like java,python ,matlab etc. hence, programmer may need to entail a compilers to implement and examine to their code.
So today we are going to see various compiler and interpreters, in this section, which are very helpful in editing and executing the code for python.
What is Python?
Python is the  programming language initiated in 1991 and developed by dr.Guido Van Rossum. Python is an  targeting on code accessibility and it is complex, interpreted and universal-purpose dynamic  language. when compared to C++, matlab and Java but Python syntax  all the programmer to write code in lesser and simple step.
 python contains a great number of library like numpy, pandas, seaborn etc.that has programmed memory managements.Python coding handles authoritative and oop functionality.The best thought about python is  it is most powerful in the governing the computer science student colleges, current markets and  Data Scientists and Artificial Intelligence 

6 Top-most Online Python Compilers for Data Science

Now let us see top-most Online Python Compilers. one of them compiler is used in this section

1 tutorials point online compiler python :

Tutorialspoint is one of the most fastest online Python compilers to run the python source code in smart way. most important point this compiler is free of cost and it’s Supported version is Python 2.0 and python3.0.  Millions of users use this kind of compiler in the all over the world. Tutorials point Python compiler is very simple to use and it’s performance is very well.

2 online compiler python

Most important point about this compiler it is free of cost as like Tutorialspoint and it’s latest Supported version is #Python 2.0 and #python3.0. similar to Tutorialspoint online python compiler is create, compile and execute the code in smart way. allow to the users to create a workspace in different languages.
Like Tutorialspoint , is also an effective  Millions of user are using this compiler across the globe. Users can get a cooperative IDE to run the code excluding all the complications. Supported versions of Python are 2.0 and 3.0. permits the users to create a workspace in several languages.

3 Pythonanywhere online compiler python

 which is unconventional online compiler? the answer is Pythonanywhere. Hence there are million of user can accessing Pythonanywhere python online compilers. In this compiler all the required setups and tool are already been configured.for this compiler there are no any software installation orserver is required. it is provide a free disk space of 512Mb.

4 Ideone online compiler python

Most important point about Ideone is excellent Python online compiler and debugging tools. It is support  55 programming languages and hence users can perform online compilation and execution of program in different language. similar to tutprialspoint it is Supported Python versions 2 and python version 3. Ideone  use of Sphere Engin technology for all this process.This technology has a Content Managements System and Non-compulsory modules for configuring programming contest and it’s challenge.

5 Hackerearth online compiler python

Note that in a month, there are 28,000 user visiting Hackerearth website for online programming.similar to tutorials point online compiler python it is supported Python versions 2 and python version 3.How is it work? User can be run the code on an isolated Amazon EC2 server placed in a sandboxed environments in this compiler.
Feature of Hackerearth :
01)It is support auto-complete and syntax highlighting feature.
02) Status, Log ID,Time and Memory are some of the details shown to the user.

6 Jdoodle online compiler python

Similar to tutorials point online compiler python JDoodle python online compiler is supported Python versions 2 and python version 3. It’s always aim to deliver a rapid and relaxed online technique to implements limited lines of code to user.
JDoodle python online compiler support the entire standard online libraries.It is very easily use this tool to edit, execute, and share codes.

Summary :

We see the some greatest python online compilers which is very helpful to edit, compile and execute the python code.

If you have any doubt about this section then comment me and if you like this post then please share.for python post click on list in python.


data science

how to install selenium webdriver for python 3.9

 Selenium is a powerful tool for controlling web browsers through programs and performing browser automation.Selenium is one of the most popular automation testing tools. Here automation testing is a process of converting any manual test case into the test scripts using automation tools such as Selenium.

What is Python?

● Python supports the Object-Oriented Programming approach to establish the applications. It is simple and easy to learn and provides lots of high-level data structures. It is an open-source language.

● It is a high-level and interpreter scripting programing language.

Selenium with python Advantages

● Open Source and Portable – Selenium is an open source and portable Web testing Framework.

● Combination of tool and DSL – Selenium is combination of tools and DSL (Domain Specific Language) in order to carry out various types of tests.

● Easier to understand and implement – Selenium commands are categorized in terms of different classes which make it easier to understand and implement.

● Less burden and stress for testers – As mentioned above, the amount of time required to do testing repeated test scenarios on each and every new build is reduced to zero, almost. Hence, the burden of tester gets reduced.

● Cost reduction for the Business Clients – The Business needs to pay the testers their salary, which is saved using automation testing tool. The automation not only saves time but gets cost benefits too, to the business.

Also see : Matrix multiplication in python

concept of selenium in python 3.9

● The Selenium test scripts can be written in any programming languages like Java, Python, C#, Ruby, Perl, as so on.

● The Selenium test scripts can be executed in many operating system platforms such as Windows, Mac, Linux, etc.

● And the test scripts can be implemented on different browsers like Google Chrome, Mozilla Firefox, Internet Explorer, Safari, etc.

● The Selenium testing tool can be associated with other testing tools such as TestNG, Junit for managing the test cases, and generating test reports.

● To achieve continuous testing, Selenium is integrated with Maven, Jenkins, and Docker testing tools.

Also see : Generator in python

Steps to install Selenium in python 3.9

Steps to install Selenium in python 3.9

1) install python first

2)Installing Selenium Webdriver Python Package: Use PIP Package Manager To Install Selenium With Python. For that, first go to the directory where you’ve installed Python. For eg. I have the latest Python version 3.6, and its location is <C:\python36>

3)Use the <pip> tool to install the Selenium Webdriver package with following line of code:

>>pip install selenium

4)To upgrade the currently installed Selenium Webdriver package then, just add the -U flag to the previous <pip> command, i.e. 

C:\python36>pip install -U selenium

5)After we have set up Python and Selenium WebDriver, the next important step is to either pick an editor or an IDE (Integrated Development Environment) for writing the test scripts.

Summary :

In this article we saw how to install selenium webdriver for python 3.9 so about this section you have any query then free to ask me

Name of Intern who share this Task :

Ashish Kumar Panda

Also read :

Pickling in python

How to automate whatsapp massage using python

How do you create expense tracker in python

data science

how to do matrix multiplication of two matrices in python using numpy

Hello friends in this section we are going to see how to do matrix multiplication of two matrices in python using numpy so let’s see :

how to do matrix multiplication of two matrices in python using numpy
import numpy as np
a = int(input('enter number of rows'))
b = int(input('enter number of columns'))
enter number of rows2
enter number of columns2
numberlist = list(map(int, input().split()))
1 2 3 4
matrix1 = np.array(numberlist).reshape(a,b)
array([[1, 2],
       [3, 4]])
c = int(input('enter number of rows'))
d = int(input('enter number of columns'))
enter number of rows2
enter number of columns2
numberlist2 = list(map(int, input().split()))
5 6 7 8
matrix2 = np.array(numberlist2).reshape(a,b)
array([[5, 6],
       [7, 8]])
res =, matrix2)
array([[19, 22],
       [43, 50]])
res1 = matrix1@matrix2
array([[19, 22],
       [43, 50]])

Name of Intern who share this Task :

Navin Franklin

github link :navinfranklin (navin franklin) (

data science

Reverse a linked list hackerrank solution python

Linked list  12->24->23->84->7
Reversed list 7->84->23->24->12
A linked list is a data structure which is made of a chain of node objects. Each
node consist of a value and a pointer. Pointer(memory location) which is link to
the next node in the chain.

Reverse A Linked List Hackerrank Solution Python

In linked list we can perform insertion, deletion operation too.
The head pointer points to the first node of the list, and the last element of the
list points to null. When the list is empty, the head pointer points to null.

10 pointer to
next node

pointer to
next node

pointer to
the null


The first thing to create a class for the nodes. The objects of this class will be the
nodes that we will insert in our linked list. The node for the linked list contains the
data and the pointer(memory location) to the next node. So, node class will
contain two variables that is data and next. The value of data is set through the
constructor code.

class Node:
def __init__(self, data=None, next=None): = data = next


create the class for the Linked List. in this class we can insert,delete,traverse and
sort the list first the class contain only one node which contain one node that is
head node that point to the first node. The value of head node to be null using
the constructor while . The following script creates a class for the linked list.

class LinkedList:
def __init__(self):
self.start_node = None

Now we have created a class for our single list. The next step is to add insertion
function to insert items into the linked list.
Inserting element in the linked list is the process of reassign the pointer from the
existing to the newly inserted node. It all based on the position of insertion that is
we can insert the new node to the beginning , last , middle of the list.

def insert(self, data):
newNode = Node(data)
if (self.head):
current = self.head
while (
current = = newNode
self.head = newNode
Then add the print function to print the node of the linked
def printLL(self):
current = self.head
while (current):
current =


then add the reverse function to reverse the list .First create before variable
which is initially set as none.the make the head node as current and the first node
of the linked list is next.This method repeat till the last node of the list.

ef reverseList(list):
before = None
current = list.head
next =
while current: = before
before = current
current = next
if next:
next =
list.head = before

Then add the driver code input from the user by making range for no.of element
for the list. Then add all element to the linked list and call the reverse function
and print that.

LL = LinkedList()
n=int(input(&quot;Enter the no.of element for linked list:&quot;))
for i in range(n):
a=int(input(&quot;enter the element&quot;))
i = 1 + 1
print(&quot;Linked List&quot;)
print(&quot;Reversed Linked List&quot;)

Summary :

In this article we saw Reverse A Linked List Hackerrank Solution Python so about this section you have any query then free to ask me

Name of the Intern who share this task :

K.Kathir oli
2nd year Cse
github link :

data science

Built-in scope Global scope Local scope Non local scope in python

Built-In Scope Global Scope Local Scope Non Local Scope In Python

In python, when you create variables, sometimes you create them inside a function, sometimes at the beginning of the program, so when you create a variable and place it at different places in the program, that refers to scope of a variable in python.

Local scope in python :

Local scope: it is also called the function scope, when you use code blocks inside a function, this function contains the names you define inside the function. So variables can only reach the area where they are defined. Python supports local scope as well as global scope. 

For example:

Def example()


Print( “the number is”, num)

Global scope in python :

In the global scope the variables can be read from anywhere inside the program, they are declared to be used in the entire code. They can be accessed inside or outside a function.

Def example()


Str= “this is easy”


Non local scope in python :

Nonlocal scope is when you define a variable inside a nested loop, a nested loop is a loop within a loop, it means variable is neither in local scope or global scope. And to declare this variable, we use the keyword nonlocal. 

Built-in scope in python :

If a variable is not defined in local, global or nonlocal, then python looks for it in built-in scope. Like when we want to calculate pi square value, we can use the built in variables.

The scope of a name or variable depends on the place in your code where you create that variable. Python follows a rule of LEGB which Is an acronym for Local, Enclosing, Global, and Built-in scopes. Python is a dynamically-typed language, variables in Python come into existence when you first assign them a value. 

The LEGB rule is a kind of name lookup procedure, which determines the order in which Python looks up names. For example, if you reference a given name, then Python will look that name up sequentially in the local, enclosing, global, and built-in scope. If the name exists, then you’ll get the first occurrence of it. Otherwise, you’ll get an error.

Summary :

In this article we saw scoop in python i.e. Built-in scope Global scope Local scope Non local scope so about this section you have any query then free to ask me

Name of the Intern who share this article :

Akshara Gc

St Joseph’s College / Bangalore University

data science

python code for round to two decimals


Python Code For Round To Two Decimals

we know that Python round() function requires two arguments.

  • First is the number to be rounded. 
  • And Second argument decides the number of decimal places to which it is rounded. 

So to round the number to 2 decimals, give second argument as 2. If third digit after decimal point is greater than 5, then last digit is increased by 1 position .

>>> round(1.4756,2)
>>> round(1.3333,2)

several ways to round decimal digits in python :

  1. Round() function use to rounds decimal places up and down. This makes 3.6578 into 3.66 and 6.62392 into 6.62.
  2. To round decimal places up we can to also use a custom function. i.e. 4.343 becomes 4.35.
  3. Similar to prev.round decimal places down we use a custom function. i.e. turns 1.348 into 1.34.

Python Code For Round To Two Decimals on Trinket :

Summary :

In this article we saw Python Code For Round To Two Decimals so about this section you have any query then free to ask me

data science

What’s benefits of Python programming?

What’s Benefits Of Python Programming?

What’s benefits of Python programming?

Python is a Object-oriented High level programming language ,consisting
of fast open source libraries to work on ,The benefits of using python are as

  1. Vast Open Source libraries to work on.
  2. Simple and easy to learn
  3. User friendly
  4. Using Python we can work on emerging technologies like machine
    learning and data science ,since it has inbuilt modules for it
  5. From creating apps using Django to Creating Games in python is very
    simpler compared to other languages
  6. It is portable and less borne to errors
  7. It is platform independent
  8. Simpler Syntax and Dynamically typed
  9. Can work on large amounts of data at a time.
  10. It is robust and Interpreted

What is a dynamically typed language?

Dynamically typed language means we can directly assign the values to
the particular variable without initialising it. Therefore based on the type of
value inputed the language will automatically allocate data type by itself
,Dynamically typed language like python is less borne to errors and working
with that type of languages is easy . This implies that dynamic typed languages
do not require the explicit declaration of the variables before they’re used
anywhere in the program

What is PEP 8 and why is it important?

PEP stands for Python Enhancement Proposal. PEP is a document
providing information to the Python community, or describing a new feature for
Python or its processes or environment. PEP 8 is of the newest versions of
Python 3,it consist of the enhancement that has been done in this recent release

and difference between previous and new version.This PEP was first started by
the founder of Python and father of Python Guido van Rossum.
1.While working on new version, certain bit of code syntax will be changed ,
through PEP 8 we can get to know
Ex :- in Python 2 : print “hello”
In Python 3 : print(“Hello”)
2.For referring Cheatsheets

  1. For referring the changed syntax
  2. We can check for the arrival of new modules in python
  3. Makes the coding simpler
  4. PEP will be having the code for working procedure of that modules in

Summary :

In this article we saw

  1. What’s Benefits Of Python Programming?
  2. What Is A Dynamically Typed Language?
  3. What Is PEP 8 And Why Is It Important?

Name of the Intern who share this task : Mahesh Y V

My name is Mahesh Y V,as per the tasks submission i am subjecting my github link and document
github link:-

data science

Which database is best for Python ?

Which Database Is Best For Python

Databases are collection of tables which consists of rows and columns. These databases are an important part of any organization or company. These databases support Structured Query Language (SQL). SQL can be used to access, create or modify these databases. Additionally, these databases support database normalization rules for avoiding redundancy of data. 

The Python programming language has powerful features for database programming language. Python language support different databases like Oracle, Sybase, MySQL, PostgreSQL, etc. Python also supports Data Definition Language (DDL), Data Manipulation Language (DML) and Data Query Statements. For database programming, the Python DB API is a widely used module that provides a database application programming interface.

List of the Database which Is Best For Python :

  1. Oracle – Oracle Database is a proprietary multi-model database management system produced and marketed by Oracle Corporation system. Oracle is a database commonly used for mixed (OLTP & DW) database workloads. running online transaction processing (OLTP) and data warehousing
  2. MySQL – It is an one of the open-source relational database management system. It is based on the structured query language, which is used for adding, removing, and modifying information in the database. Standard SQL commands, such as add, drop, insert, and update can be used with MySQL. MySQL can be used for a variety of applications, but is most commonly found on Web servers. A website that uses MySQL may include Web pages that access information from a database.
  3. PostgreSQL – PostgreSQL is a very popular open-source RDMS (Relational Database Management System), like Oracle and MySql  Database, MS SQL Server, etc. but open source, free, and community supported (you can pay for professional support). It’s primary competitor in the open-source ecosystem is MySQL / MariaDB. So basically, it’s a free DB server that is widely used to store information for websites and other uses.


In this article we saw List Of The Database Which Is Best For Python so about this article you have any query then free to ask me

data science

How do you automate Yahoo emails in python?

Hello friends, In this article we will see Yahoo mail login using Python coding in step by step. 

How Do You Automate Yahoo Emails In Python?

Which is different Steps required for Yahoo mail login using Python code

  1. We need to Setting up Firefox driver using Selenium
  2. Then set the Fullpath name, where the geckodriver.exe file we placed.
  3. The login page URL (For exam – GET Request operation
  4.  XPATH for username – Send_Keys (it can also be CSS selector, class name or tag instead of XPATH):  //*[@id=”login-username”]
  5. XPATH for pressing Enter key using Selenium: //*[@id=”login-username”]
  6. XPATH for the password – Send_Keys operation : //*[@id=”login-passwd”]
  7. Locate element by ID to press return or Enter Key using Selenium and sending a post request : login-passwd

Python code for automate Yahoo emails in python?

from selenium import webdriver

from selenium.webdriver.firefox.options import Options

from import WebDriverWait

from import expected_conditions as EC

from import By

from selenium.webdriver.common.keys import Keys

from time import sleep

options = Options()

driver = webdriver.Firefox(options=options, executable_path=r'C:\driver\geckodriver.exe')

wait = WebDriverWait(driver, 10)










wait.until(EC.presence_of_element_located((By.ID, 'login-passwd'))).send_keys(Keys.RETURN)

Summary :

In this article we saw How to login to Yahoo mail using Python coding so about this section you have any query then free to ask me

data science

PYTHON INTERVIEW QUESTIONS for beginner-experienced professionals


We know that Python is a very popular language for Data Science and Machine learning. A lot of companies are looking for a software developers proficient in Python programming language.

This book contains all Python interview questions from basic to expert level and this question mostly as in MNC (interviewer asks). Each question is accompanied with an answer so that you can prepare for job interview in short time.

Often, these questions and concepts are used in our daily programming work. But these are most helpful when an Interviewer is trying to test your deep knowledge of Python.
01 ) How to automating Facebook post using python script.explain with proper coding ? (TCS 2020 )
2) How do I post to Facebook using Python?
3) How do I find my Facebook access token?
04 ) How to use python in Embedded System as a Real Time ? (Tech Mahindra 2019)
5)How to call logging functions in python ? (WIPRO 2015)
6) How to remove string in python ?
7) Write a simple program code to get environment variables

  1. Check if string contains substring python ?
  2. Explain remove string from string python and how to get user input in python (TCS 2013)
    10.Python logging Variable Data
  3. Which databases does Python support? Explain any three. (WIPRO 2020)
  4. How will you measure the performance of your code? (Redington India Ltd)•
  5. Can you skip using a nested function in a decorator? (Mphasis Ltd.)
    14.Explain code for Yahoo Login Automation Using Python and Webdriver(FireFox) (TCS 2020)
    15.What is Dictionary , Create and Add Items (TCS2020)
    16.Write a code for Instagram Login Automation Using Python (Chromedriver) (TCS2020)
  6. How can you generate random numbers in Python? (WIPRO2014)
    18.What is the difference between range & xrange? (WIPRO2014)
    19.Write a Python program to get the volume of a sphere with radius 9. (WIPRO2014)
    20.What is self in Python?
    21.How does break, continue and pass work in python? (Larsen & Toubro Infotech Ltd)
  7. Write a Python program to print the documents (syntax, description etc.) of Python built-in function(s). (Larsen & Toubro Infotech Ltd)
  8. What is difference between a project and app in Django? Explain in details.(Tech Mahindra2018)
  9. What is Django Admin interface? (Tech Mahindra)
  10. Explain Django’s Request / Response cycle. (Tech Mahindra 2018)
    26 What are python modules? Name some commonly used built-in modules in Python?( Tata Consultancy service2020)
    27 What are local variables and global variables in Python? (Tata Consultancy service 2020)
    28 Write a Python program which accepts a sequence of comma-separated numbers from user and generate a list and a tuple with those numbers.
  11. Online code compiler and explain how to use it step by step (note: write on trinket ) (TCS2017)
  12. Python online string and explain different string methods with example code (TCS2017)
    31.Python bytes to string *(HCL Technologies 2019/TCS2020)
    32.Write a Python program to get the Python version you are using. (HCL Technologies 2019)
    33.What is the difference between list and tuples in Python? (TCS2020)
    34.What are the key features of Python?
    35.What are docstrings in Python with example? (Mphasis Ltd.)
    36.What is the purpose of is, not and in operators? (TCS2018)
  13. Write a Python program to get a new string from a given string where “Is” has been added to the front. If the given string already begins with “Is” then return the string unchanged.
    38.Write a Python program to display the current date and time. (WIPRO2018)
  1. What type of language is python? Programming or scripting? (WIPRO2018)
    40.How is Python an interpreted language?
  2. How can you set up the database in Django step by step: (Redington India Ltd.2020)
    43.Define encapsulation in Python? (Infosys.2017)
    44.How do you do data abstraction in Python? (Infosys.2017)
    45.Write a Python program to sum of two given integers. However, if the sum is between 15 to 20 it will return 20. (Infosys.2020)
Click on Book cover photo to buy

Buy Now : Python Interview Questions

Also see : machine learning interview question