Posts by Brayan Irving • 3 points
2 posts
-
-1
votes1
answer80
viewsA: How to create a function to remove unwanted characters, anti Injection
remove = set(";:,.'") def clean(sentence): for c in set(sentence)&remove: sentence = sentence.replace(c,"") return sentence Sentence = "feijão 'com,…
pythonanswered Brayan Irving 3 -
-3
votes1
answer107
viewsQ: Using Math Tricks, can you speed up Python accounts?
An example of code about my doubt. %timeit lambda : 10000000000000000*10000000000000000 40.4 ns ± 0.592 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each) %timeit lambda :…