Practical File Class XI - Computer Science / IP
String Programs
Q1 : Write a Program to input a string and a substring and then check for the occurrence of a substring in it.
Code :
sentence = input("Enter String ")
substr = input("Enter Substring ")
c = 0
pos = sentence.find(substr)
while pos != ...
keycomputereducation.hashnode.dev8 min read