11,667 questions
-1
votes
0
answers
38
views
How to get the return from a user's input in one python script file in another without calling the function again?
I am coding a battleships game and storing the data on google sheets (next module we learn about SQL databases). The data includes:
Usernames, encrypted passwords (using bcrypt), saved game states, ...
0
votes
1
answer
38
views
user = session.get('user') returns None when i try to access it across some different page
This is my login authentication API.
def login():
if request.method == 'OPTIONS':
return jsonify({'message': 'CORS preflight successful'}), 200
data = request.json
email = data....
-2
votes
2
answers
85
views
How do I call the method from a class that creates other objects? [closed]
I have five classes. My Main class, a form class, two subclasses that extend the form class and a createForm class I am forced to use to create new instances of the subclass.
public class FormenFabrik ...
2
votes
1
answer
97
views
What kind of value do you get when you apply “return” to a value without a constraint?
If you apply return to 'a' you get a value of type m Char, belonging to the Monad class: :t return 'a' → return 'a' :: Monad m => m Char. If you apply the resulting value to some other value, say, ...
-5
votes
1
answer
69
views
Returning strings and floats in python functions [closed]
I need to make a function that returns a sentence with variables in it. But how do I exclude all the special string characters that I don't need? (e.g. ( or , or ')
ef area_of_triangle( bottom, height ...
-5
votes
1
answer
103
views
Why isn't the value to be returned from my function returning to main for the subsequent functions?
It's a simple if greater than, then make it the value of BigHigh/BigLow, however it does not return successfully to main for the printout of the respective data. Instead, the printout reads 0 for both ...
0
votes
1
answer
57
views
Modbus.Net TcpClient fails exactly every 6th poll
I implemented a Modbus.Net v1.4.3 client and poll data peridoically in a main program and experience strange behaviour.
Every 6th poll gives:
Data = null
Success = false
ErrorCode = 0
ErrorMsg ...
0
votes
1
answer
25
views
How do I setup a function call to end a hotkey?
I want to use breakout(var) instead of typing that if statement a million times. How do I make that work? Return returns from the function but I want to end the hotkey.
f::{
send "a"
...
0
votes
0
answers
60
views
Problem filtering products using comparison and logical operators in JavaScript
As I filter products from an API using JavaScript's filter() method, I cannot obtain the desired range of products defined by price checkboxes in HTML. The filering works when using an if statement ...
-1
votes
1
answer
42
views
playing around discord.py and ended up in the first problem i cant solve on my own
well, i've been trying to make my first discord bot and i watched this
video to help me do a logging script that shows in the terminal, but the responses.py the guy did in the video made the bot ...
-1
votes
1
answer
44
views
Reset tabs to default resize window .. Javascript
I have that code .. its normal tabs javascript
I need when i resize the window .. To bigest then > 450px tabs back to default i mean tab2 automatic back to tab1 .. Cuz i use it in my menu
I tried ...
0
votes
1
answer
83
views
Using Python in Excel and trying to insert value from Python into cell
The question from PythonProgramming came closest to my question but the answer was unsatisfactory. There is very little documentation on Python-In-Excel. I am running a Python script INSIDE Excel ...
0
votes
0
answers
24
views
How to allocate a pointer of functions that returns a pointer to array of n elements on C++ 20
C++ 20
I have this function:
int (*funcArrayReturn())[6];
The function returns a pointer to an array int[6] (6 elements aggregated).
And I need a pointer of pointers of n elements(in this case 3) ...
0
votes
1
answer
40
views
vb.net Invoke not returning proper values?
I'm interacting with GUI controls from a separate thread when invoked i'm always getting a "nothing" object despite what I think is the right code? Not sure where it's breaking. the second ...
-1
votes
2
answers
72
views
Understanding console.log() within functions vs. using return in JavaScript?
I'm learning about functions in JavaScript and I'm confused about the role of console.log() and return.
function reusableFunction() {
console.log("Hi World");
}
reusableFunction();
I ...