Utkarsha Nathani

Utkarsha Nathani

21 Articles Published

Articles by Utkarsha Nathani

21 articles

Draw a Tic Tac Toe Board Using Python – Turtle

Utkarsha Nathani
Utkarsha Nathani
Updated on 11-Oct-2023 2K+ 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 Tree Using Arcade Library in Python

Utkarsha Nathani
Utkarsha Nathani
Updated on 11-Oct-2023 438 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 Unstructured Triangular Grid as Lines or Markers in Python using Matplotlib

Utkarsha Nathani
Utkarsha Nathani
Updated on 11-Oct-2023 387 Views

Python is a popularly used programming language. It offers a wide range of tools and libraries which can be used for solving different problems, one of them is Matplotlib. This library provides various functions for data visualization and creating different plots. In this article, we will be using Matplotlib for drawing an unstructured triangular grid as liners or markers in python. What is Matplotlib and How to Install it? Matplotlib is one of the libraries of python. This library is very strong tool for serving the purpose of plotting graphs for visualizing data. It has a module named “pyplot” ...

Read More

Draw an Arc Using Arcade in Python

Utkarsha Nathani
Utkarsha Nathani
Updated on 11-Oct-2023 392 Views

Python is an extensively used programming language. The presence of wide range of libraries and tools makes it a popular language. One of the libraries of python is Arcade. This library works as a multimedia library and provides graphic tools for the creation of 2D games, objects used in graphic applications and many more. In this article, we will be drawing an arc using Arcade library in Python. We will be using two different methods for completing the task provided to us. Let’s start by understanding the basics of Arcade library. Arcade Library Arcade library was developed for ...

Read More

How to Calculate and Plot the Derivative of a Function Using Python – Matplotlib?

Utkarsha Nathani
Utkarsha Nathani
Updated on 11-Oct-2023 5K+ Views

The Derivative of a function is one of the key concepts used in calculus. It is a measure of how much the function changes as we change the output. Whereas Matplotlib is a plotting library for python, since it does not provide a direct method to calculate the derivative of a function you need to use NumPy, which is also one of the python libraries and you can use it to calculate the derivative of a function and Matplotlib for visualizing the results. In this article, we will be calculating the derivative of a function using the NumPy ...

Read More

How to Change the Line Width of a Graph Plot in Matplotlib?

Utkarsha Nathani
Utkarsha Nathani
Updated on 11-Oct-2023 2K+ Views

Matplotlib one of the libraries of python, which plays an important role in beautifying plots and making the data analysis and data visualization an easier task. You can use Matplotlib for experimenting, by using different options available in it and creating a more appealing, informative plot. One common customization in Matplotlib is changing the line width of a graph plot. Since, line width controls the thickness of the lines, which are used in the plots at various points such as in connecting the plot points, etc. In this article, we will be learning how to change the line ...

Read More

Draw a Sun Using Arcade Library Python

Utkarsha Nathani
Utkarsha Nathani
Updated on 13-Sep-2023 732 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
Utkarsha Nathani
Updated on 13-Sep-2023 634 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

Python Program to get first and last element from a Dictionary

Utkarsha Nathani
Utkarsha Nathani
Updated on 24-Apr-2023 25K+ Views

Python is an interpreted, object–oriented, high level, programming language with dynamic semantics. Developed by Gudio Van Rossum in 1991. It supports multiple programming paradigms, including structured, object-oriented and functional programming. Before diving deep into the topic let’s first brush up the basic concepts related to the question provided to us. A dictionary is a group of items that are unique, changing, and ordered. Curly brackets are used in dictionary writing, and they contain keys and values: The key name can be used to refer to dictionary objects. Data values are kept as key:value pairs in dictionaries. Ordered and unordered ...

Read More

Python program to remove null values from a dictionary

Utkarsha Nathani
Utkarsha Nathani
Updated on 24-Apr-2023 3K+ Views

Dictionaries are known as the collection data types. They store data in the form of key value pair. They are ordered and changeable i.e., they follow a particular sequence and are indexed. We can change the values for a key and therefore it is manipulative or changeable. Dictionaries does not support duplication of data. Each key can have multiple values associated with it but a single value cannot have more than one key. We can use dictionaries to perform numerous operations. The entire mechanism depends upon the stored values. In this article, we will discuss the techniques that can be ...

Read More
Showing 1–10 of 21 articles
« Prev 1 2 3 Next »
Advertisements