DEV Community

PERUMAL S
PERUMAL S

Posted on

Day -6 learning

Hi today learned functions

below the picture five basic structure of function

Image description

example:1

def india_allience(con,dmk):
return con+dmk
con=10
dmk=30
india_allience(con,dmk)

result

40

example:2

def india_allience(con,dmk):
return con+dmk
con=10
dmk=30
print("40 ku",india_allience(con,dmk))

result

40 ku 40

Top comments (2)

Collapse
 
thaisavieira profile image
Thaísa Vieira

Hello, Perumal S. How are you? I wish you luck on your Python learning journey! Our community loves to read about learning and will be pleasure see what are you building.
To captivate more readers and make your post easier to read, I suggest you implement more Markdown (text markup language), the same one you used in the post above to use a larger font size.

Collapse
 
perumal_s profile image
PERUMAL S

thanks for your welcome

upcoming post i will implement your mentions