Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 52)
52.
How can you read a string from the console and check if it contains the substring "python"?
contains_python(input())
check_substring(input(), "python")
input().has_substring("python")
print("Python" in input())
Answer: Option
Explanation:
To read a string from the console and check if it contains the substring "python", use the in keyword.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.