[Python] function

Function definition

** def function name (): ** □□ ** Process to be executed **

def hello():
    print("hello")

Function call

** Function name () **

def hello():
    print("hello")

hello()

Multi-argument function

Separate the arguments with commas

def hello(name , greeting):
    print(name + "Mr." + greeting)

hello("tanaka" , "Hello")

Output result Mr. tanaka, Hello

Recommended Posts

python function ①
[Python] function
python function ②
python enumerate function
Python> function> Closure
[Python] Generator function
Python> function> Inner function
Python function decorator
About function arguments (python)
Python
Python function argument summary
Python print function (sequel)
Python: About function arguments
Time floor function (Python)
Create a function in Python
[python] Value of function object (?)
ntile (decile) function in python
[Python] Etymology of python function names
About python beginner's memorandum function
About the enumerate function (python)
python url setting include function
Python #function 2 for super beginners
Nonlinear function modeling in Python
Draw implicit function in python
Python higher-order function (decorator) sample
Immediate function in python (lie)
kafka python
[Python] What is a zip function?
Call a Python function from p5.js.
Python basics ⑤
python + lottery 6
Built-in python
Python comprehension
Python technique
Studying python
[python] Callback function (pass function as argument)
Python 2.7 Countdown
Python memorandum
Python FlowFishMaster
Python service
Function argument type definition in python
Python basics
Python memo
ufo-> python (3)
Python comprehension
install python
Python Singleton
Python basics ④
Python Memorandum 2
python memo
Python Jinja2
Python increment
Python installation
Write AWS Lambda function in Python
python tips
Installing Python 3.4.3.
Try python
Python memo
Python iterative
Python algorithm
Python2 + word2vec