Skip to content

Instantly share code, notes, and snippets.

@Adobe-Android
Last active April 3, 2024 15:47
Show Gist options
  • Save Adobe-Android/7e817dd83ba196da1b631d77d06d8f12 to your computer and use it in GitHub Desktop.
Save Adobe-Android/7e817dd83ba196da1b631d77d06d8f12 to your computer and use it in GitHub Desktop.
An easy way to find the midpoint between two numbers
#!/bin/env python3
def main():
num1 = 29.89
num2 = 29.86
midpoint = (num1 + num2) / 2
print(midpoint)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment