78 questions
How do you get a function to output its own name without a traceback module?For example, when the module foo has a bar function, in foo.bar() you would like to print bar is your name bar or foo.bar.Wh...
I tried to get the number of votes, use the repetitive sentence, use the number of votes, put the symbols i, put the letters on the list, show the voting list, ask what your choice is, and show you wh...
Is there a way to save the name of a function as a string in a Python script?How do I implement get_functionion_name_as_string() in the source code below?def my_function(): passprint get_functionion_n...
Here's the condition.(The price of the item is given in advance.)So the code I wrote now is ## Current amountpres_money=5000 ## the price of goodsgoods_price = {'apple':1500, 'egg':2000, 'mackerel':33...
defis_product_availability_matrix(matrix_a, matrix_b): row_a = [row for row in matrix_a] column_b = [column for column in zip(*matrix_b)] if(len(row_a) == len(column_b)): result = True else: result ...
In c++, string find (string num1, string num2)I'm going to make a function called find, but can I use the return type as a string?
Hello. I have a question while studying Closer. The function below does not originally have foo()() and contains annotated parts. When I tried foo()(), it printed well. var color = 'red';function foo(...
Hello.You can study function pointers using typeef.As I studied the usage example, there is a source like below.What I'm curious about is what is the return data type of the abc function?And return (t...
In C#, when naming variables/functions, there were implicit rules such as CamelCase and PascalCaseI wonder if Python also has this rule.string thisIsMyVariable = apublic void ThisIsMyMethod()this_is_m...
NameError: name 'a' is not definedp1.py file and made for UI using tkinterp1.py has a file p2.py to run via command.The ultimate goal is to read the file path of a file from the p2.py file.First, in p...
« | - 4 - | » |
© 2024 OneMinuteCode. All rights reserved.