Oahray's Posts
Nairaland Forum › Oahray's Profile › Oahray's Posts
1 2 3 4 5 6 7 8 9 10 (of 379 pages)
Hypocrisy is not a girl thing. It's a human thing. You'd be surprised what many male pastors do in secret. |
Batman outfit? Seriously? ![]() |
Hmmm... Ladies are enjoying sha. Nobody dey beg men with opportunities like this anywhere in the world. |
kayor123:bros you raised ValueError everywhere except where it matters. You have to make sure that the input for number of repetitions (times) is an integer. From the result, you failed to do that. If you aren't sure how to use try-except, stick with if-else. |
Burburj:
|
Burburj:Remove the space between your 'isinstance' and the parentheses containing the arguments. Also remove the print statements from your code, they are unnecessary since you weren't asked to print. You can use the print statement for debugging purposes, but delete before submitting. Edit: oh... Alright. |
Burburj:log out and log back in. Your session was probably not initialized properly. A persistent 'bin/sh not found' error is no fault of your code. What browser are you using? |
Burburj:your code has obvious errors. 1) input is int would always give you False in python. You should use the type() function. 2) the print statement is unnecessary 3) you returned a string instead of raising an error. 4) you did not loop over the dictionary contents. Can't see the rest of the code. Raise your game bro, you are competing for an interview invite, against better prepared persons. |
amamazzing:did you run as unittest with the test cases on proctor? Your method is fine, you can also loop over dictionary keys first using the .keys() method, then get each value with the key. ie # pardon my indentation. # after if statement to ensure staff is a dict for oga in staff.keys(): . if type(staff[oga]) is (int or float): . . #your remaining code |
amamazzing:sorry I didn't see this earlier. It doesn't look quite right... Your for-loop coming before your if-statement. If you pass in an int as 'staff' instead of a dict, the program would try to loop over it at that for statement, then realize it's an int which isn't iterable and you'd get a TypeError. Let the if isinstance() come before the for statement. Then... You want staff to be a dict, but you seem to be treating it like a list/str/set. Em... Can I see the instructions? |
amamazzing:your code accepts an integer in a testcase as input. An integer cannot be looped over, that's why the TypeError. Try to include a conditional statement. Like if it's not a dictionary, no gree! Do so and so (depending on what you are asked)... else, continue with the remaining code |
Babangida70:it's fine sha ![]() |
realowded:has it passed the visible tests on the Proctor? If it has but keeps showing that error message (but not test spec failure) when trying to submit, confirm that there's no part of your code that could cause it to terminate prematurely when tested with strange test cases (for example, don't raise exceptions unless you are asked to). See if there's anyway you can fine-tune your algorithm to reduce runtime. Reload the page and keep trying to submit. It would eventually go through if it satisfies all test cases. I might be wrong, but I think the frustration is part of the selection process. They want those who would keep trying no matter what. You can also mail Andela, but don't expect to get anything more than "study your curriculum harder and keep trying." That's if you get a response that isn't automated. |
koderNeptune:if it passed when you tested and, on submitting, it didn't say "your solution failed to pass all the tests," keep trying to submit. If it failed any of the tests, it would have been stated. |
hahn:but na one bundle at a time na. Ok, maybe more... ![]() I no go pack am like this Russian bros sha. |
Explorers:lol. yeah, an unending cycle. To think some of us wey never touch that kind money before go dey defend them with our small internet data. |
hahn:baba, I no get frivolities to deplete the funds on o. I no dey gamble or drink or carry woman. Ok, I might squander it on tech gadgets sha. First stop, the complete VR and 3D animation workstation of my dreams and standby solar power. Then think of how to get another bundle ![]() |
Chai! Gimme just one bundle there, and I'd walk away content. These people pretending to fight corruption are often worse than the people they condemn. |
Lol. You guys are funny. Andela wants people who are passionate about software development, who can learn fast and who can learn on their own. Doesn't matter if you are a novice, if you truly study the homestudy pack and do the codecademy tutorials, you'd get the hang of it. If it's just another job opportunity for you, don't bother. You'd end up frustrated. The labs have two types of tests... A visible test and an invisible/hidden test. If you have bugs in your code, read the last line of the debug message. You'd see where you made a mistake. You could also post the code here so others can help you debug. In the long run, it's better you do it yourself though. Else if your code fails any of the visible tests, read the instructions carefully and check the tests tab to see what they are testing for. Else if your code passes the visible tests but on submitting, you are told that if failed to pass all the tests, it's because there are hidden tests too. Read the instructions over and over again and fine-tune your code till it is accepted. Else if you are simply told that there was an error running your script, then it's the Proctor/your network. Keep trying to submit. PS: Before you ask, I'm not in Andela. |
There's no justice in Nigeria ![]() |
joseph1832:most girls, I dare say She could try, but it would be like a chameleon trying to change color to fool the crowd of humans already surrounding it. |
Chrysz:lol. What pain? That Pep silenced noisy Mourinho? Or that Kelechi is proving himself? Barca fan here. I wish the game had a bigger goal margin. I actually want to see Pep beat Mourinho 5 - 0 again ![]() |
ipledge10:Bros no think am say if City fit do am den Chelsea go fit o. Man Utd go likely beat una. |
Chrysz:3 victories for Mou. One copa del rey final, one laliga match and one Supercopa match, if my memory serves me right. |
joseph1832ng:yeah, being straightforward is the mature path. That way the other party can't pretend she doesn't know where the budding relationship is going. |
Who still thinks Pep isn't a better coach than Mourinho? |
fflamingo:who be Man Utd? Bravo wey don face teams like Real Madrid and Bayern? He's just adjusting to the EPL, and there's pressure on him to be better than Hart. |
joseph1832ng:I can bet 5 million out of my future millions that he wouldn't be penalized in any law court. He could easily claim he had good intentions, but it just didn't work out. No be by force to marry person. Deceit is wrong but not every deceit is punishable by law. Even for the ones that are punishable, we still owe it to ourselves to avoid being victims if we can. At times we can only pick ourselves from the ground and learn our lessons. |
Hart would smile at that Bravo blunder ![]() |
Iheanacho 1 goal, 1 assist. At this rate, this guy would turn out to be a great footballer. Abeg make una thrash Mourinho team for me ![]() |
joseph1832ng:better this than forcing her and painting men slaves of their own hormones. |

see Ghanaians shoe too
