Vikram Chiluka

Vikram Chiluka

216 Articles Published

Articles by Vikram Chiluka

Page 9 of 22

Decimal Equivalents of 1/2, 1/3, . . . ,1/10 in Python

Vikram Chiluka
Vikram Chiluka
Updated on 23-Jan-2023 2K+ Views

In this article, we will learn a python program that prints out the decimal equivalents of 1/2, 1/3, 1/4, . . . ,1/10. Methods Used The following are the various methods to accomplish this task − Printing Decimal Equivalent of 1/2 Using the range() function Using the decimal module Method 1: Printing Decimal Equivalent of 1/2 We can easily use this code to find the decimal equivalents of 1/2. In this code, we just display the output after storing the result of 1/2 in a variable, inputNumber. Example The following program returns the decimal equivalents of 1/2 − ...

Read More

Check if the matrix is lower triangular using Python

Vikram Chiluka
Vikram Chiluka
Updated on 23-Jan-2023 500 Views

In this article, we will learn a python program to check if a matrix is lower triangular. Assume we have taken an input matrix. We will now check whether the input matrix is lower triangular using the below methods. Methos Used The following are the various methods to accomplish this task − Using nested for loop What is a Lower Triangular Matrix? If all the entries above the main/principal diagonal are zero, a square matrix is said to be lower triangular. Example 1 0 0 0 2 3 0 0 1 3 7 0 0 ...

Read More

Calculating profit or loss using Python

Vikram Chiluka
Vikram Chiluka
Updated on 23-Jan-2023 7K+ Views

In this article, we will learn a Python Program to calculate Profit Or Loss. The following are the different methods to accomplish this task − Using If Conditional Statements Using the abs() function. What are the selling price, cost price, and Profit and Loss? The price a consumer pays to purchase a product or a commodity is known as the selling price. It is a price that is higher than the cost price and also includes a portion of the profit. Cost price is the cost at which the seller buys the product or the commodity. He ...

Read More

Breaking a Set into a list of sets using Python

Vikram Chiluka
Vikram Chiluka
Updated on 23-Jan-2023 604 Views

In this article, we will learn how to break a Set into a list of sets in Python. Assume we have taken an input set. We will now break this input set into a list of sets element-wise using the below-mentioned methods. Methods Used The following are the various methods used to accomplish this task − Using For Loop and append(), add() functions Using Python map() & lambda functions Using List Comprehension Method 1: Using For Loop and append(), add() Functions Algorithm (Steps) Following are the Algorithms/steps to be followed to perform the desired task. − Create ...

Read More

Adding a data table to the figure using Python

Vikram Chiluka
Vikram Chiluka
Updated on 23-Jan-2023 2K+ Views

In this article, we will learn how to add a data table to the figure using Python. Although matplotlib is primarily a plotting library, it also assists us with minor tasks when making a chart, such as having a nice data table alongside our attractive visuals. It is critical to understand why we are adding a table to a plot. The primary goal of plotting data visually is to clarify the otherwise incomprehensible (or barely understandable) data values. Now we want to add the data back in. It is not advisable to just put a large table with values beneath ...

Read More

What is the best way to get stock data using Python?

Vikram Chiluka
Vikram Chiluka
Updated on 16-Jan-2023 13K+ Views

In this article, we will learn the best way to get stock data using Python. The yfinance Python library will be used to retrieve current and historical stock market price data from Yahoo Finance. Installation of Yahoo Finance(yfinance) One of the best platforms for acquiring Stock market data is Yahoo Finance. Just download the dataset from the Yahoo Finance website and access it using yfinance library and Python programming. You can install yfinance with the help of pip, all you have to do is open up command prompt and type the following command show in syntax: Syntax pip install yfinance ...

Read More

What are the uses of the "enumerate()" function on Python?

Vikram Chiluka
Vikram Chiluka
Updated on 16-Jan-2023 527 Views

In this article, we will learn about the enumerate() function and what are the uses of the "enumerate()" function in Python. What is enumerate() function? Python's enumerate() function accepts a data collection as a parameter and returns an enumerate object. The enumerate object is returned in key-value pair format. The key is the corresponding index of each item, and the value is the items. Syntax enumerate(iterable, start) Parameters iterable − the data collection that is passed in so that it can be returned as enumerate object is called iterable start − as the name suggests, the starting index ...

Read More

What are some projects that I can work on while learning Python?

Vikram Chiluka
Vikram Chiluka
Updated on 16-Jan-2023 274 Views

In this article, we will learn some projects that we can work on while learning Python. The finest skill you can master right now is unquestionably Python. Python is a flexible language with many potential uses. Python is a programming language that may be used for data research, machine learning, automation, and web development. Python may be used to work as a freelancer or for major software firms like Google. Very few languages offer both of these possibilities. The best way to learn is to create projects and practice solving issues, thus in this article, we've prepared a list of ...

Read More

How do I create a user interface through Python?

Vikram Chiluka
Vikram Chiluka
Updated on 12-Jan-2023 1K+ Views

In this article, we will learn how to create a user interface using python. What is GUI? The term "Graphical User Interface" (or "GUI") refers to a set of visual elements that may be interacted with in computer software to display informational and interactive items. In response to human input, objects may change appearance characteristics like as color, size, and visibility. Graphical components like icons, cursors, and buttons can be enhanced with audio or visual effects like transparency to create a graphical user interface (GUI). If you want more people to use your platform, you need to make sure it ...

Read More

How can I make Python interesting for me?

Vikram Chiluka
Vikram Chiluka
Updated on 12-Jan-2023 377 Views

This article will teach us how to create some fascinating things in Python to make our work more interesting. Trading Bot While the economy, stock market, and cryptocurrencies are all suffering, many people are still profiting. Even though you shouldn't put all your money into a trading bot unless you know what you're doing, it's an interesting project to work on and learn from. AI Sports Betting Software Although the goal is to predict an outcome of events (much like the trading bot), the approach you choose to solve this challenge may be very different. As opposed to a trading ...

Read More
Showing 81–90 of 216 articles
« Prev 1 7 8 9 10 11 22 Next »
Advertisements