Category: Python basic tutorials

python tutorials and learn python

Created with Sketch.

PyTest Tutorial: What is, Install, Fixture, Assertions

  PyTest Tutorial: What is, Install, Fixture, Assertions What is PyTest? Pytest is a testing framework which allows us to write test codes using python. You can write code to test anything like database , API, even UI if you want. But pytest is mainly being used in industry to write tests for APIs. Why…
Read more

PyUnit Tutorial: Python Unit Testing Framework (with Example)

  PyUnit Tutorial: Python Unit Testing Framework (with Example) What is Unit Testing? Unit Testing in Python is done to identify bugs early in the development stage of the application when bugs are less recurrent and less expensive to fix. A unit test is a scripted code level test designed in Python to verify a…
Read more

Python 2 vs Python 3: Key Differences

Python 2 vs Python 3: Key Differences What is Python 2? Python 2 made code development process easier than earlier versions. It implemented technical details of Python Enhancement Proposal (PEP). Python 2.7 (last version in 2.x ) is no longer under development and in 2020 will be discontinued.   What is Python 3? On December…
Read more

Python JSON: Encode(dump), Decode(load) json Data & File (Example)

  Python JSON: Encode(dump), Decode(load) json Data & File (Example) What is JSON? JSON is a standard format for data exchange, which is inspired by JavaScript. Generally, JSON is in string or text format. JSON stands for JavaScript Object Notation. The syntax of JSON: JSON is written as key and value pair. { “Key”: “Value”,…
Read more

Reading and Writing CSV Files in Python using CSV Module & Pandas

Reading and Writing CSV Files in Python using CSV Module & Pandas What is a CSV file? A CSV file is a type of plain text file that uses specific structuring to arrange tabular data. CSV is a common format for data interchange as it’s compact, simple and general. Many online services allow its users…
Read more

Python Vs PHP: What’s the Difference?

Python Vs PHP: What’s the Difference? What is Python? Python is a high level object-oriented, programming language. It has built-in data structures, combined with dynamic typing & binding which makes it an ideal choice for rapid application development. Python also offers support for modules and packages, which allows system modularity and code reuse. It is…
Read more

Top 40 Python Interview Questions & Answers

Top 40 Python Interview Questions & Answers 1) What is Python? What are the benefits of using Python? Python is a programming language with objects, modules, threads, exceptions and automatic memory management. The benefits of pythons are that it is simple and easy, portable, extensible, build-in data structure and it is an open source. 2)…
Read more

Python vs JAVA vs PHP vs PERL vs Ruby vs JavaScript vs C++ vs TCL

Python vs JAVA vs PHP vs PERL vs Ruby vs JavaScript vs C++ vs TCL Python is one of the most popular programming languages. Currently, each of the following six languages are being used by programmers for developing both desktop and web applications. That is why, it is important for programmers to compare Python with…
Read more

Python XML Parser Tutorial: Read xml file example(Minidom, ElementTree)

Python XML Parser Tutorial: Read xml file example(Minidom, ElementTree) What is XML? XML stands for eXtensible Markup Language. It was designed to store and transport small to medium amounts of data and is widely used for sharing structured information. Python enables you to parse and modify XML document. In order to parse XML document you…
Read more

Python Internet Access using Urllib.Request and urlopen()

Python Internet Access using Urllib.Request and urlopen() What is urllib? urllib is a Python module that can be used for opening URLs. It defines functions and classes to help in URL actions. With Python you can also access and retrieve data from the internet like XML, HTML, JSON, etc. You can also use Python to…
Read more