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)
Python @lru_cache() how to store key with different value
I understand that following caches an item in dict with key as 1 and value as "this is item 1 value"
@lru_cache()
def get_item(item_id):
return {item_id: f"this is item {item_id} va...

Anum Sheraz
Votes: 0
Answers: 0
how to make a command that only works for a certain role in a certain channel, otherwise it sends them a message to ask for a role
I'm currently coding a discord bot on the side and I'm stuck on a command that I'm trying to only make certain role to use it, when the wrong role type the command he got a reply to get the right role...

skz
Votes: 0
Answers: 1
Web Scraping by Python -- element click intercepted
When I run my code, it is able to place username and password, but couldn't click on sign in button.
options = ChromeOptions()
options.add_argument("headless") # to hide window in 'backgroun...
samira
Votes: 0
Answers: 0
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