What do you want to save?
Add Code snippet
New code examples
-
Lua 2021-10-27 19:32:08
basic commands roblox
function onChatted(msg, speaker) local source = string.lower(speaker.Name) msg = string.lower(msg) if msg == "/respawn" then -- Respawns them speaker:LoadCharacter() elseif msg == "/ff" then Instance.new("ForceField",... Add solution -
Python 2021-10-10 04:48:10
capitalize string python
# Python string capitalization string = "this isn't a #Standard Sntence." string.capitalize() # "This isn't a #standard sentence." string.upper() # "THIS ISN'T A #STANDARD SENTENCE." string.lower() # "this isn't a #stand... Add solution -
Python 2021-10-07 02:46:04
data processsing python
def filter(string): stopwords = ['their', 'during', 'doesn', "she's", 'ourselves', 'weren', 'll', 'has', 'had', 'we', 'not', 'if', 'will', 'such', 'needn', 'own', "isn't", "you'll", 'or', 'o', 'hadn', 'but', 'his', 'my'... Add solution -
Python 2021-10-03 10:01:03
how to find the indexes of a substring in a string in python
import re # matches_position_start will be a list of starting index positions matches_start = re.finditer(word.lower(), string.lower()) matches_position_start = [match.start() for match in matches_start] # matches_position_end will be a list of ending in... Add solution -
Python 2021-09-06 19:01:04
start and end index in python
import re # matches_position_start will be a list of starting index positions matches_start = re.finditer(word.lower(), string.lower()) matches_position_start = [match.start() for match in matches_start] # matches_position_end will be a list of ending in... Add solution