Skip to content

Instantly share code, notes, and snippets.

@raghavmri
Created May 4, 2022 13:43
Show Gist options
  • Save raghavmri/fe54d486a80bd5b28431264ed734007d to your computer and use it in GitHub Desktop.
Save raghavmri/fe54d486a80bd5b28431264ed734007d to your computer and use it in GitHub Desktop.
# Q14 A
string = input()
sub_string = input()
string.count(sub_string)
# Q14 B
# 1. ('b', 'o', 'o', 'k')
# 2. (1, 2, 4)
# 3. ('Riya', 'Riya', 'Riya')
# 4. 74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment