Skip to content

Instantly share code, notes, and snippets.

@Adobe-Android
Last active April 16, 2024 21:14
Show Gist options
  • Save Adobe-Android/c36edbb07dc103ea416cd26cbae25674 to your computer and use it in GitHub Desktop.
Save Adobe-Android/c36edbb07dc103ea416cd26cbae25674 to your computer and use it in GitHub Desktop.
#!/bin/env python3
def main():
y = 13
x = 52
percentage = round((y / x) * 100)
print(f"{y} is {percentage}% of {x}")
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment