Improved readability (#1615)

* improved readability

* further readability improvements

* removed csv file and added f
This commit is contained in:
GeorgeChambi
2019-12-07 05:39:59 +00:00
committed by Christian Clauss
parent 938dd0bbb5
commit 9eb50cc223
21 changed files with 44 additions and 50 deletions

View File

@@ -25,4 +25,4 @@ if __name__ == "__main__":
print("Invalid literal for integer")
RESULT = binary_exponentiation(BASE, POWER)
print("{}^({}) : {}".format(BASE, POWER, RESULT))
print(f"{BASE}^({POWER}) : {RESULT}")

View File

@@ -44,7 +44,7 @@ def main():
steps = 10.0 # define number of steps or resolution
boundary = [a, b] # define boundary of integration
y = method_2(boundary, steps)
print("y = {0}".format(y))
print(f"y = {y}")
if __name__ == "__main__":

View File

@@ -43,7 +43,7 @@ def main():
steps = 10.0 # define number of steps or resolution
boundary = [a, b] # define boundary of integration
y = method_1(boundary, steps)
print("y = {0}".format(y))
print(f"y = {y}")
if __name__ == "__main__":