What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-31 01:35:10
capitalize 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-28 23:11:08
how to make a virtual assistant with python
import speech_recognition as mic import pyttsx3 import pywhatkit import datetime import wikipedia import pyjokes listener = mic.Recognizer() engine = pyttsx3.init() voices = engine.getProperty('voices') engine.setProperty('voice', voices[1].id) def tal... Add solution -
Other 2021-10-28 12:50:05
data processsing
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 -
TypeScript 2021-10-24 16:57:09
most common elements in a list python
>>> # Tally occurrences of words in a list >>> cnt = Counter() >>> for word in ['red', 'blue', 'red', 'green', 'blue', 'blue']: ... cnt[word] += 1 >>> cnt Counter({'blue': 3, 'red': 2, 'green': 1}) >>> # F... Add solution