I just answered a fun combinatorial question. My code seems to work ok for smallish data sets, but it might take a while, and chew up a lot of RAM, on larger data sets. :) stackoverflow.com/questions/51117776/…
@user3483203 Thanks! Some of the code's a bit messy, and I guess I could have used more meaningful variable names in a few places, but hopefully the accompanying text cuts through some of the confusion. :)
@greenarrow add all relevant code (like the line you posted here) and relevant libraries (imports!) into your question. You already have some data so it's close to an MCVE
Also consider switching to python 3 for a modern programming language. 3.7 is just out.
Say guys, if I took 2 hours to write a detailed answer for someone and he ended up calling me a drivel-copying fanboy that doesn't understand anything (apparently he wasn't any less rude to the other people who also answered to his question). What shall I do?
@greenarrow Oh for yam's sake start reading. You were told twice that asking for help on new questions here is frowned upon, and I clearly told you that I don't have any problems reading your question (why would I?!), but you were missing information there that you wrote here. I figured two message trashings and a kick would convey the message. Well if at first you don't succeed
@neoDev sure, but what you want and what you're doing seem to contradict each other. You said you want to print "not OK" for numbers smaller than or equal to 10, but you're testing for numbers larger than or equal to 10 in your code to print "not OK"
your original should work if you really want "greater than or equal to 10" if you put num1 instead of num2 or num3...or there's some info missing from your description of the problem
Why are there 3 different variables in your if statement? You said you want to check if a variable is smaller than 10. What's with the other 2 variables?
hello, iam new in python and i want to access python documentation in eclipse, i familiar in java as for any function i have to press ctrl+space and it shows the help menu but here iam not getting it i searched over the net and it says help(module name)
@Fawkes those are to be used in an interactive shell, and also there's great online documentation for many libs. This is more of an Eclipse configuration problem I think
I don't use eclipse but googling "eclipse python help" seems relevant
I wouldn't have expected any caching; I'd just discard the first 3 elements
@AndrasDeak I think the first one was better, since the OP wants the values, not the indices. But really, I probably shouldn't stick my nose into numpy questions
In case anybody else is into casual "flash" games, I stumbled onto a puzzle called Mine of Sight which is loosely based on the logics of minesweeper. I found it really entertaining (controls can be changed so that right click flags a mine)
@vaultah how was it engaging in "Fat shaming and anti-fat bias in code"
@vaultah also is that like some kind of passive aggressive threat to the ether, its not an ultimatum if you're throwing it to people who have no power on that end
Well SO is definitely not very welcoming to anyone but experienced coders. Bringing creed and color into it seems a little silly for a community where nobody knows the other's identity
it's partly that (doing all the work you can to help those who help you for free), and partly that reducing your problem to an MCVE will make you solve it yourself in 95% of cases