Understanding what *args and **kwargs are and how to use them

Photo by Dlanor S on Unsplash

Let’s say we have a function that adds numbers.

def adding(x,y):
print(x + y)

If we run this code we will get 5 as output, simple enough. But if we pass more than 2 arguments(numbers to add) on the adding functions like:


we’ll get an error like this

TypeError : adding( ) takes 2 positional arguments but 4 were given

The reason why this happens is that the function expects only 2 numbers which it will add (x and y which we passed as arguments in the function).

Planning for a Year of Achievement

Photo by Isaac Smith on Unsplash

Are you busy making your New Year Resolutions? Or have you decided never to make a New Year’s resolution ever again.? If the latter, you’re not alone. So many people get demoralized when they make resolutions that they keep for only a few weeks or maybe even just a few days.

Day 1 and 2 of #100daysofmlcode challenge

Photo by Hitesh Choudhary on Unsplash

Why do Data Scientists choose Python over other languages?

Python has long been known as a simple programming language to pick up from a syntax point of view. Also, it has an active community with a vast selection of libraries and resources.


  • Variables
  • Data Types
  • List
  • Working with List
  • Tuples
  • Dictionaries

Python is an interpreted, object-oriented, high-level programming language. Python’s simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. …

Personal reasons and the General reasons.

Photo by Estée Janssens on Unsplash

About a year ago I kind of looked back in my past and realised about a pattern I never knew before :

Photo by freestocks on Unsplash

To work on a machine learning project, it’s important to set your computer up in the right way. This article will go through what is Anaconda, what is Minconda and what Conda is and why you should know about them if you are a ML practitioner.

Photo by Aaron Sebastian on Unsplash

Why an Advertisement Recommendation System? :

  • Advertising is a form of communication for marketing, used to encourage or manipulate an audience to continue or take some new action.
  • How many ads do we see daily? Dozens? Hundreds? Or maybe thousands?
  • How many we remember at the end of the day?
  • An average modern person is exposed to around 5,000 ads per day. (Yankelovich, Inc — 2007 )

Let’s start with understanding the terminologies

Overview :

Everyone today can access the streaming content on their mobile phones, laptops very easily and video has been a very important and popular content on the internet. Nowadays, people are making their content…

Rushikesh Konapure

Machine Learning, Deep Learning and Cloud Enthusiast. Like to explore new things, enhancing and expanding my knowledge every day!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store