Last active
April 3, 2024 15:47
-
-
Save Adobe-Android/7e817dd83ba196da1b631d77d06d8f12 to your computer and use it in GitHub Desktop.
An easy way to find the midpoint between two numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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