daily pastebin goal
79%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def remove_all_from_string(string1, string2):
  2.     while string2 in string1:
  3.         index = string1.find(string2)
  4.         string1 = string1[:index] + string1[index:]
  5.        
  6. remove_all_from_string("zoo", "z")
RAW Paste Data
Top