I used the following code to define my linked list, nodes and a few functions. class node: def __init__(self,node_data): self.__data=node_data
I have a list like this: dummy_list = [(8, 'N'), (4, 'Y'), (1, 'N'), (1, 'Y'), (3, 'N'), (4, 'Y'), (3, 'N'), (2, 'Y'), (1, 'N'), (2, 'Y'), (1, 'N')]
I'm able to select both the combo box successfully but to print the second dropdown box value, I got lost. Could somebody explain how to print the Table value f
Say I have two taxi orders with Origin1、Destination1 and Origin2、Destination2(O1,O2,D1,D2). I want to calculate the possibility of ridesharing, so
I'm doing some modification to a CSV via pandas. For one of the situations, I want to use parse a URL into a list, grab the last two items of that list, and out
So I have the following code: # the view class UpdateDateView(LoginRequiredMixin, UpdateView): model = Date form_class = DateForm template_name = '
The relevant code is this: import tkinter as tk from tkinter import ttk import quiz global menu_root def get_question(): question_input = question_respons
I'm trying to have an if statement condition based on state value being equal to a certain value (0,1,2,3 etc.) Is there away to have the condition be with name
I have a Python function which is decorated. @retry_if_access_token_expired(app_id) def add_something( self, *, argument1,
I am trying to write a simple code that displays 3 sets of greetings in accordance to what day of the week a user inputs. I am learning about functions as I am
I've looked around for a solution and tried filtering my df to where the longitude and latitude are not null but to no avail. This is my first time using geopy
I use this library https://github.com/jaseg/python-mpv and PySide6 to embed MPV in container (QWidget) in python. I want to draw the button (or something else m
The login button is missing from my browsable API. I am using django-rest-knox for token authentication. My urls.py contains: urlpatterns = [ path('admin/',
I am new to robot framework and i tried to automate booking sites and when i tried to select cities from Yatra.com website but unable to select cities and dates
I'm trying to join column values into new column but I want to skip nan values: df['col'] = 'df['col1'].map(str) + ',' + df['col2'].map(str) + ',' + df['col3'].
I want to detect a long mouse click using tkinter. How can I do that? The <Button-1> doesn't help at all.
For example like this url = https://example.com/test/myname/myname.jpg result = re.search('(?:https?://)?(?P<host>.*?)(?:[:#?/@]|$)', url) I can get th
I'm interested in the time complexity of the .index() in python function I'm trying to find the implementation in the docs but nothing so far.
Plotly sunburst charts are great for visualizing hierarchical data. Is it possible to retrieve the values shown in the chart into a dictionary, or an array or s
I want to retrieve the specific data from realtime database in python file. I need to setup a connection first but I don't know how to set it up and then retrie