Let’s say we have a function that adds numbers.
def adding(x,y):
print(x + y)adding(2,3)
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:
adding(2,3,4,5)
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).
But here we have given it 4 values to add…
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.
Why is this? After all, we all have the best intentions and the timing (new year, new start) couldn’t be better. The problem may lie in the fact that we place a huge amount of pressure on ourselves. During the last week of December and the first week of…
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.
Professionals working with data science applications don’t want to be bogged down with complicated programming requirements. They want to use Python to perform tasks hassle-free.
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. …
About a year ago I kind of looked back in my past and realised about a pattern I never knew before :
As a Boy, I spent hours and hours with all types of screwdrivers continuously assembling and disassembling my toys. When I was a teenager computer arrived at my home. All the games I was playing with were construction and strategy games. My grandpa introduced me to the internet I got to know about what is a website, email and much more. I got my first email-id in my 5th which was a very big thing back then for…
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.
Whether you’re working solo or working in a team on a Machine learning, Deep Learning based project these tools provides the infrastructure for a consistent experience.
Anaconda, Miniconda and Conda provide the ability for you to share the foundation on which your experiment is built on also ensure that if someone else wanted to…
Let’s start with understanding the terminologies
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…
Machine Learning, Deep Learning and Cloud Enthusiast. Like to explore new things, enhancing and expanding my knowledge every day!