Everything from syntax, documentation, parameters, and arguments to local and global variables

An open laptop surrounded by photos of cars
Photo by Boitumelo Phetla on Unsplash

Hello, and welcome to my guide to Python user-defined functions. This article will cover the basics of Python user-defined functions, the syntax you must master, and examples to help you consolidate your newly acquired knowledge.


In simple terms, a function takes an input, performs a computation, and produces an output…

My Story and Advice


I take it you have exhausted all of your efforts on Google trying to find any information that will be helpful for your upcoming trip to China? You are now praying this article will shine some light on your situation? How do I know this? I was in the same…

From Procrastinator to Proactive by Adopting One Habit!

I am writing this article because I was a serial procrastinator. Now, that’s not saying I didn’t get things done, I just wasn’t utilising my time right. I always said I would do this, or do that with no structured organisation. Time just went by, wasted. Time is a…

If you practice your Python, you will get better. Else, you won’t!

Hello Pythonistas, I hope everyone is staying happy and healthy during these difficult times. For those of you who have been following my blog, welcome back. For our noobcomers, congratulations on starting your Python adventure. Part 5 of my ‘Beginners Guide to Python’ is all about if/elif/else statements. My series…

Let Your Coding Journey Begin

Funnily enough, I decided to write this article for my mum. For the past month, I have been writing a ‘Beginners Guide to Python’ with new articles coming out each week. The aim is to help those wanting to start their Python journey. My mum has been following along step…

True or false… While loops have boolean conditions?

looping staircase

Hello Mediumites! I hope everyone is happy, healthy and eager to learn. For those who have been following my ‘Beginners Guide to Python’, welcome back and well done for continuing on your Python journey. Learning something new and alien can be tough. A voice in the back of your mind…

For loops for noobs. Let's get loopy!


Hello fellow learners, I hope everyone is happy and healthy! Also a big welcome back to those of you who have been following my ‘Beginners Guide to Python’. Today we will crack on with for loops. During the first week or two of my data science boot camp, loops…

Not to be mistaken for the Oxford Dictionary….

Photo by Aaron Burden on Unsplash

Welcome back! I hope you found ‘Beginners Guide to Python, Part1: Lists’ insightful. Even if it only helped a tiny bit, that’s still a win for me! My goal is to help and encourage you on your Python and machine learning journey. It wasn’t too long ago that I was…

Photo by National Cancer Institute on Unsplash

Hello! My name is Niall and this is my very first data related blog. For the past 10 years, I lived and worked in Beijing, China. Wanting a change and new challenge in life, I decided to relocate to London and pursue a career in data science. I recently finished…

Niall McNulty

I’m a junior data scientist who enjoys long-distance running, football, travelling, reading, food, programming… the list could go on. Never stop learning!

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