Advertisement
prabhavms

Q1(cyclesheet 6)

Dec 27th, 2021
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. s1=input()
  2. s2=input()
  3. position=int(input())
  4. def result(x,y):
  5.     if y in x:
  6.         index=int(x.find(y))
  7.         print(index-position)
  8.     else:
  9.         print("NotAvailable")
  10. result(s1,s2)
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement