Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
davidl.me
David's Wiki
Search
Search
Log in
Personal tools
Log in
Python: Difference between revisions
Page
Discussion
English
Read
View source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
View source
View history
General
Special pages
Printable version
← Older edit
Newer edit →
Python
(view source)
Revision as of 15:39, 13 July 2020
2 bytes added
,
13 July 2020
→Tuples
Revision as of 15:39, 13 July 2020
(
view source
)
David
(
talk
|
contribs
)
(
→Tuples
)
← Older edit
Revision as of 15:39, 13 July 2020
(
view source
)
David
(
talk
|
contribs
)
(
→Tuples
)
Newer edit →
Line 318:
Line 318:
# Return a tuple
# Return a tuple
def int_divide(a, b):
def int_divide(a, b):
return a//b, a % b
return a // b, a % b
</syntaxhighlight>
</syntaxhighlight>
David
Bureaucrats
,
Interface administrators
,
Administrators
5,321
edits
Toggle limited content width