Table of Contents
In this tutorial, we will discuss the concept of Python programming language functions.
In python, function is a collection of related and reusable statements include as a single unit. This is used to perform a specific action that looks like a method.
Basically two type of functions are available in python.
1. Built-in function – this functions defines and it is a built-in python programming language.
For Examples – Math function, String function
2. User- defined function – Users can define the function themselves.
This tutorial explains user defined functions
The advantages of using functions are:
Program 2
Program 3
When the above code was executed, it produced the following results
hello i am a function
Program 4
hello kanthan
hello Nimal
hello Santhan
Program 5
Multiply two numbers in Java using scanner| 5 different ways In this article, we will…
5 Different ways to Divide two numbers in Java using scanner In this article, we…
Learn 8 Ways to Subtract Two Numbers Using Methods in Java In this article, we…
10 ways to subtract two numbers in Java In this article, we will discuss the…
Java Code Examples – Multiply Two Numbers in 5 Easy Ways In this article, we…
How to Divide two numbers in Java| 5 different ways In this article, we will…
This website uses cookies.