Skip to content

Instantly share code, notes, and snippets.

def dict_distance (dict1:dict,
dict2:dict) -> float:
distance_list = []
character_length = []
for key, value in dict1.items():
distance_list.append(edit_distance(dict1[key].strip(),
dict2[key].strip()))
@srsani
srsani / sss.md
Last active January 23, 2023 14:53

Here is some math!

$$\sqrt{3}$$

$ sqrt{3} $ $$ sqrt{3} $$

import glob
import pydub
import pandas as pd
import glob
def con_mp3_wav(file):
sound = pydub.AudioSegment.from_mp3(file) ## reading the file mp3 file
sound.export(file[:-4]+".wav", format="wav")## exporting the wav fiel to a spesific folder.
## file[:-4] removes the .mp3 from the file name.