Quick actions

cmd+k|ctrl+k

Navigation

Languages

Functions

Snippet info

Language

Python

Visibility

public

Author

fpuleano

Created

2022-02-21T15:34:17.2861Z

Updated

2022-02-22T15:38:18.917384Z

# Fuctions, we are not limited to the functions Python gives us...we can create our own.
# def lets Python know that we are going to define a function
# example:

def say_hello(): # the () lets Python know we are going to take action on the data type
 print('hello')
say_hello()
# THe reason that functions are so powerful because of the principle of DRY "Do Not Repeat Yourself"...functions are really
# useful when you have things that you want to do over and over.


print(say_hello)
INFO