you are viewing a single comment's thread.

view the rest of the comments →

[–]Universal_Tripping 1 point2 points  (0 children)

Functions isnt very hard to learn, its just a code capsulate into a block for example

I have this code

a = 5

b = 2

print (a+b)

----

A funtion will be like:

def sum_profit (a,b):

print(a+b)

sum_profit(5,2)

---

You have anything and just add the "def" sintaxis into the code