![]() ![]() When I discuss * and ** in this article, I’m talking about the * and ** prefix operators, not the infix operators. named arguments), I’d recommend reading my article on keyword arguments in Python first. If you’re newer to Python and you’re not yet familiar with keyword arguments (a.k.a. So if you learned * and ** back in the days of Python 2, I’d recommend at least skimming this article because Python 3 has added a lot of new uses for these operators. The * and ** operators have grown in ability over the years and I’ll be discussing all the ways that you can currently use these operators and noting which uses only work in modern versions of Python. I’d like to discuss what those operators are and the many ways they’re used. These two operators can be a bit mysterious at times, both for brand new programmers and for folks moving from many other programming languages which may not have completely equivalent operators. ![]() There are a lot of places you’ll see * and ** used in Python.
0 Comments
Leave a Reply. |