Skip to content

Instantly share code, notes, and snippets.

@RaMSFT
Created October 18, 2022 04:42
Show Gist options
  • Save RaMSFT/78cb80900124e17abc5aedb9171ef66d to your computer and use it in GitHub Desktop.
Save RaMSFT/78cb80900124e17abc5aedb9171ef66d to your computer and use it in GitHub Desktop.
def full_half_quarter_so_on(num):
result = [num, num/2, num/4, num/8]
return result
print(full_half_quarter_so_on(6))
print(full_half_quarter_so_on(22))
print(full_half_quarter_so_on(25))
print(full_half_quarter_so_on(100))
print(full_half_quarter_so_on(400))
print(full_half_quarter_so_on(120))
print(full_half_quarter_so_on(80))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment