Optimize print operation

This commit is contained in:
Normale 2022-11-26 00:00:09 +01:00 committed by kuchyx
parent 96c267ab3b
commit d75401a7b2

View File

@ -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)