We continue to learn the Python programming language Python. Let’s move on to chapter 6 “Functions. Tic-Tac-Toe Game” from the book: Michael Dawson “Python Programming”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition) to create our own functions and work with global variables .
Содержание:
How to create a function?
General view of a function in Python: function_name()
To create your own function, you need to declare it.
General form of a function declaration
def function_name(parameter1, parameter2...):
'''Document string'''
Function expression block