Coggle requires JavaScript to display documents.
def right_triangles(n): nums = range (1, n+1) return [(a, b, c) for a in nums for b in nums for c in nums if a**2 + b**2 == c**2] right_triangles(5)
[(3, 4, 5), (4, 3, 5)]
print('Pluto\'s is a planet')
triplequoted_hello = """hello world""" print(triplequoted_hello) triplequoted_hello == hello
words = claim.split() words
datestr = '1956-01-31' year, month, day = datestr.split('-')
'/'.join([month, day, year]) ' 👏 '.join([word.upper() for word in words])
claim = "Pluto is a planet" claim.upper()
'PLUTO IS A PLANET'
claim.lower()
'pluto is a planet'
dt = "2020-11-14" year, month, day, = dt.splirt("-") year
'2020'
month
'11'
day
'14'
'/'.join([month, day, year])
'11/14/2020'
' / '.join([month, day, year])
'11 / 14 / 2020'