Found 10784 Articles for Python

Draw a Tree Using Arcade Library in Python

Utkarsha Nathani
Updated on 11-Oct-2023 15:21:37

141 Views

Python is a modern programming language. The wide range of features, such as extensive libraries, simple syntax etc. has increased its popularity in different fields such as web development, data science, and many more. In this article, we will be using one of the libraries of python which is Arcade. This library will help us build a tree using different structures. What is Arcade Library? The arcade library was developed for creating more appealing graphics for games and other graphical applications. Less number of choices gave rise to a different library which became a modern python module. This ... Read More

Draw a Tic Tac Toe Board Using Python – Turtle

Utkarsha Nathani
Updated on 11-Oct-2023 15:22:58

619 Views

The wide range of libraries and tools makes python a popular and widely used programming language. One of the library which we will use in this article to complete the task of drawing a tic tac toe is Turtle. This library helps in creating graphics by using a virtual turtle. The commands are given to the virtual turtle on the window. In this article, we will use simple functions of the turtle library to draw the tic tac toe. What is Tic Tac Toe Board? Tic tac toe is a popular game, played on a 3*3 grid board. The ... Read More

Draw a Sun Using Arcade Library Python

Utkarsha Nathani
Updated on 13-Sep-2023 11:21:01

277 Views

Python is a highly multipurpose programming language with a vast network of libraries and frameworks that has capabilities beyond the standard language features. Arcade is one of the libraries used for creating graphics and handling user input. It uses basic shapes like circles and lines, a gradient approach, and many other techniques for creating attractive graphics. In this article, we will learn different methods for drawing a sun using the Arcade library in Python. Arcade Library and Its Features Arcade library is a Python library built on top of Pyglet, a multimedia library for python. It is a python library ... Read More

Django Shortcuts – get_list_or_404()

Utkarsha Nathani
Updated on 13-Sep-2023 11:09:47

243 Views

Django is a popular web framework written in python, helps the web developers to create web applications efficiently. One of the most important features of Django is the built-in functions known as shortcuts. These shortcuts help in providing useful features for completing the task. In this article, we will be learning about one of the commonly used shortcuts in Django which is ‘get_list_or_404()’. What is Django Shortcut Module? This is a collection of useful functions which can be used for completing the operations such as rendering templates, handling errors, etc. Some of the commonly used shortcut module are render(), ... Read More

Connecting to SQL Database using SQLAlchemy in Python

Utkarsha Nathani
Updated on 13-Sep-2023 11:07:16

2K+ Views

SQLAlchemy is one of the popular Python libraries used for working with the databases. It offers a high-interface for connecting to variety of databases, including MySQL, PostgreSQL, and MongoDB. So, with the help of SQLAlchemy, Python codes can be written which interacts with the database in a more meaningful and intuitive way, that is without writing the SQL queries directly. In this article, we will discuss how to connect to a SQL database using SQLAlchemy in Python. First of all, let us understand what is and SQL database and what is SQLAlchemy. SQL Database A SQL database is ... Read More

Connecting PostgreSQL with SQLAlchemy in Python

Utkarsha Nathani
Updated on 13-Sep-2023 10:54:27

3K+ Views

Python provides variety of libraries one of them is SQLAlchemy, it provides an Object Relational Mapping (ORM) system for working with databases, including PostgreSQL. It is used for the purpose of storing and managing huge amount of structured data by the developers. By connecting both of them we can create a more productive and efficient database. In this article, we will learn how to connect PostgreSQL with SQLAlchemy in Python. What is SQLAlchemy? It is a powerful library that helps in simplifying the process of working with the databases, and is widely used in web development and data analysis. ... Read More

Connect to MySQL using PyMySQL in Python

Utkarsha Nathani
Updated on 13-Sep-2023 10:59:56

4K+ Views

What is PyMySQL? It is a python library which is used for connecting MySQL database. It is completely written in Python and uses python for communicating with MySQL server. Compatible with Python 2.7 and python 3.x, and provides a simple and instinctive interface for connecting to the MySQL database, executing SQL queries and for retrieving results. Why PyMySQL? It does not require any additional software, it is easy to use, provides security that is it supports SSL connections for secure communication, hence it is a popular choice for building Python applications that require database connectivity. What is MySQL MySQL ... Read More

Remove all duplicates and permutations in a nested list in Python

Pranavnath
Updated on 04-Sep-2023 16:43:51

675 Views

Removing duplicates and changes from a settled list in Python could be a common errand that makes a difference streamline information and maintain a strategic distance from excess or dreary components. In this article, we point to extricate an interesting set of sublists from the settled list, disposing of any duplicates or stages. By doing so, we will streamline further operations and guarantee information keenness. In this article, we are going investigate three diverse approaches to attain this objective. Each approach will go with step-by-step clarifications, Python code, and yield, empowering you to get it and execute the foremost reasonable ... Read More

Bar Charts Using Python Vincent

Pranavnath
Updated on 04-Sep-2023 16:42:25

127 Views

Bar charts are a popular visualization tool for displaying categorical information. They give a clear and brief way to compare different categories or bunches. Vincent is a Python library that gives an easy-to-use interface for making intelligent visualizations. It is built on top of the well-known plotting library, Matplotlib, and gives a more declarative syntax for creating visualizations. With Vincent, you'll be able to make bar charts, line plots, diffuse plots, and more.  In this article, we will investigate how to form bar charts utilizing the Python library Vincent. Python Vincent Python Vincent, moreover known as Vincent, is a ... Read More

Basic Gantt Chart Using Python Matplotlib

Pranavnath
Updated on 04-Sep-2023 16:40:23

3K+ Views

Project management could be a complex endeavor that requires cautious arranging, organization, and following of errands and timelines. Gantt charts have long been a staple in extended administration, giving a visual representation of venture plans, errand lengths, and conditions. These charts empower venture directors and groups to successfully arrange, screen, and communicate extend advance. In this article, we'll set out on a travel to make essential basic fundamental essential Synonyms Gantt charts utilizing the effective Python library, Matplotlib. By leveraging Matplotlib's plotting capabilities, we will make energetic and instructive Gantt charts that upgrade and extend visualization and decision-making. Basic Gantt ... Read More

Advertisements