John Mainpynerds.hashnode.dev·Mar 28, 2024*args and **kwargs in PythonIn this article you will learn how to use the single and double asterisk operators, to define functions that can take an arbitrary number of arguments. But before we dive on that, we first need to understand how arguments works in Python. There are ...DiscussPython
John Mainpynerds.hashnode.dev·Mar 20, 2024Python functools moduleOriginal Article The functools module in the standard library provides functions and classes for manipulating functions. The primary tool defined in the module is the partial class, which as we will see in a while, allows the partial application of ...Discuss·10 likes·59 readsPython
Emmanuel Oyiboemminex.hashnode.dev·Feb 21, 2024How to Use Python Lambda FunctionsThis in-depth tutorial will teach you how to use Python Lambda functions. You’ll understand why they are helpful in simplifying code and in the context of functional programming. Also, you’ll get acquainted with basic use cases of lambda functions, a...Discuss·10 likes·36 readsPython 3
John Mainpynerds.hashnode.dev·Feb 19, 2024Python FunctionsPython Functions - original article A function groups related statements that perform a specific task. The statements inside a given function are only executed when the function is called. A Function typically has three parts i.e. declaration, implem...Discuss·10 likes·36 readsPython
Anuradha Guptatechno101.hashnode.dev·Jan 29, 2024Arguments in Python FunctionsIn Python, functions are defined using the def keyword followed by the function name and a set of parentheses containing any arguments the function requires. Arguments are values that are passed to the function when it is called, and they can be used...DiscussPython
Miguel Vasquezmiguel4prez.hashnode.dev·Jan 25, 2024Python's Built-in Functions: A Comprehensive OverviewPython stands out as an exceptional computing language suitable for diverse applications such as backend development, mobile apps, and even game development! What sets Python apart is its code, which is not only easy to read but also easy to understa...Discuss·128 readsPython
Faraz Khanfarazk.hashnode.dev·Nov 15, 2023Difference between Required, Optional, Positional and Keyword argumentsIf you are like me and terms like required arguments, optional arguments, positional arguments, and keyword arguments have ever left you puzzled, worry not! In this straightforward exploration, we'll break down the complexity and make Python function...DiscussPythonPython
Robert Wynnrobai.hashnode.dev·Sep 14, 2023Functions in PythonI recently finished reading John Sonmez's book "Soft Skills". Of particular interest to me was the section on how to learn new things quickly. He lays out a 10-step process. Most of the steps I've already been doing as long as I can remember. But the...Discusspython beginner
Sourav Mandalsourav091.hashnode.dev·Sep 10, 2023Mastering Exponents in Python: The Power Function and Loop-Based ApproachesThe concept of exponents is fundamental in mathematics, and in this article, we will explore how to calculate exponents in Python using two different methods: the power function and a loop. Whether you're a beginner or looking to deepen your Python k...DiscussPython 3
Sandra Ashipala (sandramsc)sandraashipala.hashnode.dev·Aug 17, 2023Unlocking the Power of PythonThis post is part two of Unlocking the Power of Python, covering functions to explore the idea of and how to use the range function. So, let’s continue on this thrilling journey and Unlock the Power of Python. What is a function and how do you use fu...Discuss·47 readsPython