From d75401a7b2da13d5df6cc79d1a34612afa67f3fa Mon Sep 17 00:00:00 2001 From: Normale <52136684+Normale@users.noreply.github.com> Date: Sat, 26 Nov 2022 00:00:09 +0100 Subject: [PATCH] Optimize print operation --- code/project.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/project.py b/code/project.py index 87dc5414..35b07b8a 100644 --- a/code/project.py +++ b/code/project.py @@ -42,6 +42,5 @@ def print_sieve(num: int) -> None: # Driver code if __name__ == '__main__': num = int(input("Enter a number: ")) - print("Following are the prime numbers smaller") - print("than or equal to", num) + print(f"Following are the prime numbers smaller than or equal to {num}") print_sieve(num) \ No newline at end of file