How to create a function and more!

Shourya kelkar
Nov 26, 2022

--

By Shourya Kelkar

How to create a function?

To create a function follow these simple steps

The function is the name of the function

You press enter and write the code for your function

Now what if you wanted to add parameters, all you have to do is write the name of your parameter in the brackets. If there are more than 1, you then separate using a comma

Instead of the parameter name write your own parameter

For multiple parameters, you write like this

hello is another parameter

--

--

Shourya kelkar

I am a python programmer. I will try and help you as much as possible if you are new to python programming. I am 14 years old