![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 27104 Articles for Server Side Programming
![Atharva Shah](https://www.tutorialspoint.com/assets/profiles/626166/profile/60_735606-1679646268.png)
3K+ Views
Trading, investing, and other financial professionals need access to financial data since investment research is reliant on it. Yahoo Finance, which offers up-to-date market statistics, news, and analysis, is one of the most well-known sources of financial information. Python is a robust and flexible programming language that can be used to extract financial data from Yahoo Finance, so in this post, we'll be utilizing the yfinance package to do just that. Installation and Syntax Before we get started, we need to install the yfinance library, which allows us to access Yahoo Finance data from Python. We can install yfinance using ... Read More
![Rohan Singh](https://www.tutorialspoint.com/assets/profiles/638564/profile/60_146647-1681360804.jpg)
2K+ Views
Time series data is a sequence of observations collected over time at regular intervals. This data can be of any domain such as finance, economics, health, and environmental science. The time series data we collect can sometimes be of different frequencies or resolutions, which may not be suitable for our analysis and data modeling process. In such cases, we can Resample our time series data by changing the frequencies or resolution of the time series by either upsampling or downsampling. This article will explain different methods to upsample or downsample the time series data. Upsampling Upsampling means increasing the frequency ... Read More
![Rohan Singh](https://www.tutorialspoint.com/assets/profiles/638564/profile/60_146647-1681360804.jpg)
2K+ Views
In Python, tuples are immutable sequences that can contain a collection of elements. We can multiply all the items in a tuple using various methods like using a for loop, using the reduce() function from the functools module, using list comprehension, and the math.prod() function, etc. In this article, we will explore all these methods and implement the functions to multiply all items in a tuple in Python. Method 1:Using for loop This method is straightforward and easy to understand. It involves iterating over each item in the tuple and multiplying them one by one using a for loop. Syntax ... Read More
![Rohan Singh](https://www.tutorialspoint.com/assets/profiles/638564/profile/60_146647-1681360804.jpg)
139 Views
In Python, we can group strings on the kth character using several methods like using a dictionary, leveraging the groupby() function from itertools, and utilizing the defaultdict from the collection module. Grouping strings on the kth character is useful when manipulating and performing complex operations on strings. In this article, we will explore different methods to group tuples by their kth index element, using various techniques, and demonstrate their implementation. Method 1:Using a Dictionary One approach to group strings on the Kth character is by using a dictionary. We can iterate through the list of strings, extract the Kth character ... Read More
![Rohan Singh](https://www.tutorialspoint.com/assets/profiles/638564/profile/60_146647-1681360804.jpg)
615 Views
We can get the Nth Word in a Given String in Python using string splitting, regular expressions, split() method, etc. Manipulating strings is a common task in programming, and extracting specific words from a string can be particularly useful in various scenarios. In this article, we will explore different methods to extract the Nth word from a given string using Python. Method 1:Splitting the String This method involves splitting the string into a list of words and accessing the desired word based on its index. Syntax words = string.split() Here, the split() method splits the string based on whitespace ... Read More
![Asif Rahaman](https://www.tutorialspoint.com/assets/profiles/616697/profile/60_2108550-1678682669.jpg)
214 Views
Dictionary is an important data structure in Python which consists of key value pairs. They were originally designed to be non−iterable objects. However recently Python extended its support for iteration of the dictionary objects too. A nested dictionary has nodes, leaf, non−nodes etc. In this article we will understand how to manipulate leaf and non−leaf nodes using dictionaries in Python. What are leaf and non leaf nodes? Before we deep dive into the codes we first need to understand what are the leaf and non leaf nodes in dictionary data types. Leaf node:Those nodes which do not ... Read More
![Asif Rahaman](https://www.tutorialspoint.com/assets/profiles/616697/profile/60_2108550-1678682669.jpg)
208 Views
Lambda functions are popular functions in Python which have no name. They are designed to help us when we need to apply any small operation but we know we won't be reusing the code elsewhere. In this article we will learn how to find the smaller value between two elements using the lambda function. We will explore several methods like min, sorted etc along with the lambda function to perform the same. Using The if else Statement The if else statement is called the conditional operator in Python. It gives us the ability to make certain decisions based on certain ... Read More
![Asif Rahaman](https://www.tutorialspoint.com/assets/profiles/616697/profile/60_2108550-1678682669.jpg)
1K+ Views
Lambda functions in Python are nameless functions which are useful when we want to combine multiple expressions in a single line. The lambda function is convenient when we are sure that we won't be reusing the code anywhere else in the program. If however the expression is long we may want to switch to regular functions instead. In this article we will understand how to check if a value exists in a list using the lambda function. Using The filter Method The filter method in Python is a built−in function which creates new elements in the list depending upon certain ... Read More
![Asif Rahaman](https://www.tutorialspoint.com/assets/profiles/616697/profile/60_2108550-1678682669.jpg)
63 Views
Strings are important data types in any programming language. They are sequences of characters. Finding kth valid String is a programming technique in which we need to find the kth element out of a list of elements which is a valid String. In this article we will understand several methods like brute force, using list comprehensions and enumerate objects, filter method etc. We will also see how to use the Pandas library to deal with the same. Understanding The Problem Statement We will have list and the value of k as the input: list: ["", "orange", "75", "apple"] k: ... Read More
![Asif Rahaman](https://www.tutorialspoint.com/assets/profiles/616697/profile/60_2108550-1678682669.jpg)
92 Views
Finding the Kth index tuple list is an important programming concept in Python. The problem statement is that we need to find the mean of all the elements present at the kth index of the tuple elements. The tuples would be aggregated into a list data type. Throughout this article, we will adopt different approaches like using a while loop, list comprehension, and libraries like Pandas, NumPy, Statistics, etc. Understanding The Problem Statement Our input should contain a list of tuples and the value of k. list: [(1, 2, 3), (4, 5, 6), (7, 8, 9)] k: ... Read More