def check_substring(main_string, substring):
if substring in main_string:
return True
else:
return False
main_string = input("Enter the main string: ")
substring = input("Enter the substring to search: ")
if check_substring(main_string, substring):
print(f"The substring '{substring}' is present in the main string.")
else:
print(f"The substring '{substring}' is not present in the main string.")
#source code --> clcoding.com







.png)





.png)
.png)




.png)


.png)

.png)
.png)
