Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 746a3cf

Browse files
Answer
1 parent 8115748 commit 746a3cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎String's/Find a string.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ def count_substring(string, sub_string):
77
if le+i == len(string):
88
break
99
return(c)
10-
1110
if __name__ == '__main__':
1211
string = input().strip()
1312
sub_string = input().strip()
1413

1514
count = count_substring(string, sub_string)
16-
print(count)
15+
print(count)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /