DataScience Classroomnotes 10/Mar/2022

Functions in python

  • Functions define most basic way of reusability in python
  • Function syntax
def <function-name>(param1, param2...):
    return <some-object>
  • Lets see this in action
def is_even(number):
    return number%2 == 0

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner