From a07733ed8a459971ca6f5a350c11a711cbdfccf1 Mon Sep 17 00:00:00 2001 From: Christopher Bohn <bohn@unl.edu> Date: Wed, 17 Mar 2021 14:26:07 -0500 Subject: [PATCH] Updated StackBuster so less time is wasted with building huge strings. --- StackBuster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StackBuster.py b/StackBuster.py index dc9fcb5..c4e0b3c 100755 --- a/StackBuster.py +++ b/StackBuster.py @@ -1,6 +1,6 @@ def non_terminating_recursion(a_string, instance_number): - a_longer_string = "{} {}".format(a_string, a_string) - # print( "Activation instance: {:d}".format(instance_number)) + a_longer_string = f' {a_string} ' + print(f'Activation instance: {instance_number}') return non_terminating_recursion(a_longer_string, instance_number + 1) -- GitLab