Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I found this code somewhere in Google.i don't understand how the output is displayed in this sequence.can anyone explain me this?
Code:
def main():
make_omelet()
print("ocean")
def make_omelet():
print("hello")
break_eggs()
print("sos")
def break_eggs():
print("sea")
main()
Output:
hello
sea
sos
ocean
here is the flow that generates the output
main --> make_omelet --> break_eggs
Follow the logic and see how the output is generated,
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
I want to know how when somebody uses a slash command and puts a id / number it will store that id and if they use it again it will give them the same answer but im using import random.
Can someone just drop a code below or tell me how please?
Didn't try anything yet.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
The questions are being asked but the if statements do not show up. What mistake am I making?
print() is a built-in function, if you want to call the function to print out text in the console, you have to use it like this:
print(arguments)
This
print = (arguments)
is not calling print(), but is assigning something to the name "print".
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Cant seem to find any documentation, i assumed adding .To or the like would do it but im at a loss. Anyone familiar with yfinance?
Turns out it was an error pulling "Fundamentals" when getting certain stock info. Another post advised me to add an exception in yfinance's base.py file. All works well after that.
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 4 years ago.
Improve this question
if(stuckSomewhere()||lost() == true)
{
stuckSomewhere().stop();
lost().stop();
debugAvailableOptions();
}
I'm pretty much newbie for python. I was exploring python but I'm unable to come to a solution for this snippet.
If you want the syntax to be python:
if (stuckSomewhere() or lost()) == True:
stuckSomewhere().stop()
lost().stop()
debugAvailableOptions()
But otherwise, I have no idea what is code is supposed to do.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Can someone help me?
I have a project on Node.js(Cappuccino framework), and I must to use with the project my Python script.
How to do this deal?
You did not consult Google before asking. Searching for 'node.js execute python' got me HERE. I'm guessing this is what you want.
I'm guessing because you're not being very clear. Next time be more specific.