Find palindromic numbers in both binary and ternary bases: Difference between revisions
Find palindromic numbers in both binary and ternary bases (view source)
Revision as of 03:22, 15 May 2019
, 5 years ago→Functional Python
m (→Functional Python: (tidied top level)) |
|||
Line 1,675:
# TEST
def main():
'''Integers with palindromic digits in both binary and ternary'''
Line 1,768:
# label :: Method String -> (String, Int)
def label(k):
'''
method (ljust|centre|rjust) of the label,
and the specified amount of white space.
|