menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Function in Python
source image

Dev

1M

read

422

img
dot

Image Credit: Dev

Function in Python

  • Functions in Python can perform specific tasks, reuse and reduce code, and must have a def, identifier, and ().
  • Functions can have 0 or more parameters and 0 or more return statements to return a value.
  • Using functions reduces code compared to not using a function with repetitive tasks.
  • Functions in Python cannot be assigned to a variable except through Lambda expressions.

Read Full Article

like

25 Likes

For uninterrupted reading, download the app