repl.it
@AlexanderHall4/

testfor funct

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def instr(testfor, teststr):
  global t
  strlen = len(teststr)
  testforlen = len(testfor)
  t = False
  for i in range(testforlen - strlen + 1):
    if teststr == testfor[i:i+strlen]:
      t = True
      break
while True:
  a = input()
  b = input()
  instr(a, b)
  print(t)
?