mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Improved readability (#1615)
* improved readability * further readability improvements * removed csv file and added f
This commit is contained in:
committed by
Christian Clauss
parent
938dd0bbb5
commit
9eb50cc223
@@ -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}")
|
||||
|
||||
@@ -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__":
|
||||
|
||||
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user