Last active
April 16, 2024 21:14
-
-
Save Adobe-Android/c36edbb07dc103ea416cd26cbae25674 to your computer and use it in GitHub Desktop.
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(): | |
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