result = myQ(2.0, 1.0, neg = True) * myQ(2.0, 1.0, rec = True) [on hold]











up vote
-3
down vote

favorite












=1| def myQ(num, den, rec = False, neg = False):
2| if rec:
3| if neg:
4| return den / -num
5| else:
6| return den / num
7| else:
8| return num / den










share|improve this question







New contributor




Christopher Mitchell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by Graipher, Martin R, πάντα ῥεῖ, Toby Speight, vnp yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1




    Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
    – Mathias Ettinger
    yesterday















up vote
-3
down vote

favorite












=1| def myQ(num, den, rec = False, neg = False):
2| if rec:
3| if neg:
4| return den / -num
5| else:
6| return den / num
7| else:
8| return num / den










share|improve this question







New contributor




Christopher Mitchell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by Graipher, Martin R, πάντα ῥεῖ, Toby Speight, vnp yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1




    Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
    – Mathias Ettinger
    yesterday













up vote
-3
down vote

favorite









up vote
-3
down vote

favorite











=1| def myQ(num, den, rec = False, neg = False):
2| if rec:
3| if neg:
4| return den / -num
5| else:
6| return den / num
7| else:
8| return num / den










share|improve this question







New contributor




Christopher Mitchell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











=1| def myQ(num, den, rec = False, neg = False):
2| if rec:
3| if neg:
4| return den / -num
5| else:
6| return den / num
7| else:
8| return num / den







python






share|improve this question







New contributor




Christopher Mitchell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Christopher Mitchell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Christopher Mitchell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









Christopher Mitchell

1




1




New contributor




Christopher Mitchell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Christopher Mitchell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Christopher Mitchell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by Graipher, Martin R, πάντα ῥεῖ, Toby Speight, vnp yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






put on hold as unclear what you're asking by Graipher, Martin R, πάντα ῥεῖ, Toby Speight, vnp yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 1




    Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
    – Mathias Ettinger
    yesterday














  • 1




    Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
    – Mathias Ettinger
    yesterday








1




1




Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
– Mathias Ettinger
yesterday




Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
– Mathias Ettinger
yesterday















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Morgemoulin

Scott Moir

Souastre