So im trying to compare 2 lists using python, one contains like 1000 links i fetched from a website. The other one contains a few words, that might be contained in a link in the first list. If this is the case, i want to get an output. i printed that first list, it actually works. for example if the
How to get data of Post.user not the logged in User
I am currently working on a blog project for learning purposes, I am trying to get the total number of posts made by a specific user. In my model I have set the User who makes a Post as Author. In the Post detail page I am trying to show the total number of Posts made by this specific author
argparse – asks for argument that’s already been given
i’m trying to run my file with the following command: where my argparse code is: my code runs with the command – however, the else block runs regardless of whether the command contains the -p argument or not. would really appreciate help, thanks! Answer Running the command: is equivalent to: In Ba…
How to count the occurrences of a string in a number of string pairs in python? [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question I hav…
I can’t do anything with python dict? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question Im really stuck with a little problem that I have. Currency_price.json is …
Is it possible to add values to context into a for loop?
I have a for loop to iterate a list. In every iteration i have a different value, and i want to add this value to my context. I’m trying using context.update, but every time this returns an empty context. cCard returns correct data. The only thing I need is to store what come from cCard to context[̵…
Is it possible to create nested class attributes?
I’m pretty new to Python and have recently learned about classes. I’ve been experimenting around with them and have come up with a student/course grading system. Here’s the code so far: So this creates a course class, which I can add students to and set their rooms and other stuff. I’v…
Adding RevitAPI.dll into a Visual Studio
When I’m adding a RevitAPI.dll file into Visual Studio this message has appeared (The selected component could not be browsed) anyone could support me? Answer Have you manually navigated to the directory containing Revit.exe and selected the Revit API .NET assembly there? Have you set the correct versio…
How to plot the sum of two animated sine waves in python?
Code:- This is the code I have tried to attain the result. But it u is static, that is it prints the final plot, and it only prints in a temporary window and closes after execution of the code. But I need an answer which have three waves in the same output, where the first sine wave and second sine
How to set all values between a range equal to zero in python [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I want to set all the values between 0.75 and 0.8 of an array, equal to ze…