"Enter A String:": STR Input Print STR 2
"Enter A String:": STR Input Print STR 2
#Extract words from the sentence, put them in a list, and display the
list.
#Enter a new string from the user and check if the entered string is
present in the original sentence
if(str2 in str1):
print("New string is present in string 1")
else:
print("new string is not present in string 1")
def is_prime(n):
if n < 2:
return False
for i in range(2, int(n ** 0.5) + 1):
if n % i == 0:
return False
return True
if is_prime(number):
print(f"{number} is a prime number.")
else:
print(f"{number} is not a prime number.")