python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to add suffix operations for all python functions?
I have a a collection of functions inside a file myfile.py and I would like to add a timer print automatically for each of them:
(have around 700 functions)
def myfunXXX()
mytime.start()
mytim...
quantCode
Votes: 0
Answers: 3
How to create a column with number of elements in list after applying splitlines() to another column?
I have a dataframe:
col1
upload main/\then delete/\
for once
upload main/\then delete/\copy/\
I want to create new column with number of elements after applying splitlines() function to this column. ...
Ir8_mind
Votes: 0
Answers: 1
How do I return a value of true if the letters 'a' and 'b' are exactly 3 places apart?
I'm trying to create a function that takes in a string and outputs a value of true if any of the 'a's in the string are exactly 3 places from the 'b's in the same string. If the 'a's and 'b's are not ...

jacob_hill08
Votes: 0
Answers: 7
Parameter passing in function
Seems like this has been addressed over the years that Python has been around, but here goes anyway:
def soupstrainer(tag_element,srch_str):
''' take a soup element
return a list of found ...
AlMo320
Votes: 0
Answers: 2