FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
programmingWithPythonCode/syntax/function_no_docstring.py at main · thomasWeise/programmingWithPythonCode · GitHub
thomasWeise
programmingWithPythonCode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
programmingWithPythonCode
/
syntax
/
function_no_docstring.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (8 loc) · 403 Bytes
Breadcrumbs
programmingWithPythonCode
/
syntax
/
function_no_docstring.py
Copy path
File metadata and controls
11 lines (8 loc) · 403 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
"""The syntax of function definitions and function calls."""
def
my_function
(
param_1
:
type_hint
,
param_2
:
type_hint
)
->
result_type
:
body
of
function
1
body
of
function
2
return
result
# if result_type is not None we return something
normal
statement
1
# some random code outside of the function
normal
statement
2
my_function
(
argument_1
,
argument_2
)
# We call the function like this.
Back
|
FazBrowse Home
|
New Git URL