Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,152,773 members, 7,817,159 topics. Date: Saturday, 04 May 2024 at 07:24 AM |
Nairaland Forum / Enigmatique's Profile / Enigmatique's Posts
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (of 22 pages)
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 7:40pm On Mar 28, 2016 |
omonosa25:There's a saying/rule in law enforcement, that when you're investigating a crime/gang/syndicate, FOLLOW THE MONEY. In this case, we're investigating an error, and the error message said something about line 15. I followed the money, and found out that the else statement on line 15 ISN'T properly indented to be on the same level as the if it was intended for. So correct that and let's see. I can see some quirks in the logic of your code already but hey, I might be wrong. So, go run it and let's see. |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 12:48pm On Mar 28, 2016 |
dabanzy:Glad to hear that! |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 12:39pm On Mar 28, 2016 |
omonosa25:1. It should be BankAccount(object) not just BankAccount. 2. The names of two of your functions are wrong i.e it should be deposit and not Deposit, withdraw and not Withdraw. 3. In withdraw(), it should be if amount > balance: and not if amount < balance: Correct those and let's know the outcome. 1 Like |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 7:55am On Mar 28, 2016 |
dabanzy:Here are the problems/quirks I see in your script: 1. You don't need that "continue" statement on line 6. The for loop will continue normally. 2. int is a built-in function of Python! Just like len(), range(), str(), it can't be used as a varible name. The Proctor interpreter also shows this coz it gave len() and range() the same color as int. So use another variable name e.g some_int, num, number etc. 3. The range stipulated on line 11 is accurate, but you need to rethink line 12-15. The way it is, it's only testing the input with one number, the first number of the range you gave, which is 2. This is due to the return statements on lines 13 and 15, which end any further execution/iteration. Therefore, those lines are testing for ODD numbers, not prime ones. SOLUTION: Use your loop to check if any of the numbers in the stipulated range is a factor of the input. Immediately you find a factor, return False. But if the loop completes without finding a factor, then put a "return True" statement OUTSIDE the loop (TIP: that should be on line 17 ). |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 7:16am On Mar 28, 2016 |
5staG: Ah, I can see two problems with your script, which I've bolded: 1. The prime_number() you described here is ACTUALLY testing for even numbers. So, if a number is even, it returns False and if it is odd, it returns True. We both know that not all odd numbers are prime (9, 15, 21, 25 etc) and 2 IS prime. You can see for yourself by running it on these numbers: 2, 9, 15, 21. SOLUTION: First, check if the number supplied is <= 1, and return False if so. If not, what you need to do is divide the input by ALL numbers less than it AND greater than 1. Immediately you find a factor (i.e num % divisor == 0), break/stop the checks and return False. But if the loop completes, then return True. 2. The bolded part of your get_algorithm_result() is redundant. You don't need to check for the last element in the list and then break the for loop. No. It will terminate by itself when it passes the range you gave for the for loop(no pun intended ). Check these and give me your feedback. 1 Like |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 4:55pm On Mar 27, 2016 |
dabanzy:Yes it was. Was one of the programs from the Andela-IBM-Techpreneur partnership to train 1000 data scientists. But it was also first-come-first-served. Besides, I no dey Lag ATM, so wouldn't have been able to attend. |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 2:19pm On Mar 27, 2016 |
dabanzy:Uh, no, didn't get that mail. Last one I got was about a Data Scientist Masterclass. But do let us know how it goes if you get picked sha. |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 4:40pm On Mar 26, 2016 |
5staG:Lol, I know. But na we wan bcom fellows na, no be so? So we have to figure it out ourselves. After childbirth, a mother looks at all her past troubles in the last 9 months and says "Yes, it was more than worth it". There's somewhere in their FAQ in Proctor that says if your script passes the tests but not the submission, it's because the script isn't passing some special, hidden tests that the submit button carries out on it. So, why not post your script here and let us have a look. We might be able to tell you its shortcomings IF any. (You can also PM it to mavizacogito @ gmail . com) |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 8:53am On Mar 26, 2016 |
5staG:But at least try it please. Btw, I also removed ALL comments from script. Try that too. |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 8:49am On Mar 26, 2016 |
WafiJoe:You too bro! |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 3:50pm On Mar 25, 2016 |
So, how did I do it? SUMMARY: I retyped my code from scratch using my phone's original keyboard app and QPython's[1] text editor, and it worked! DETAILS: I tried Incognito Mode in Chrome, thinking it was some stored data/cookie that was messing me up. Didn't work. However, I typed my initial script with a custom keyboard app called Hacker's Keyboard, and had been suspecting that that app had put some funny characters in my code. So I changed back to my Android phone's follow-come AOSP keyboard and used QPython's text editor to write my script FROM SCRATCH, proofread it, chugged into Proctor and GAZEEN! It passed the tests! Though ecstatic, I wasted no time in hitting the submit button and that was it! [1]: QPython is a Python interpreter for Android phones that's obtainable in Play Store. So 5staG, au far? Try this and let me know how it went. 1 Like |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 3:14pm On Mar 25, 2016 |
Yuppie! Yippee! Chineke dalu! Jesu seun! Nagode Yesu! Halleluyah! "Why the jubilation?", you ask. Well, I've FINALLY succeeded in submitting my script for the Algorithm Lab! Cc WafiJoe, dabanzy, onyebig1, miketayo and especially 5staG. Yeah baby! 1 Like
|
Computers / Re: Grab My HP Dv6-3023nr 4GB RAM,500GBHD, 15.6″ Display For A Cheapest Price by enigmatique(m): 6:41pm On Mar 23, 2016 |
kayworld2:Eeyah. Not in Lagos ATM. But I'm starting to get interested. But I could send someone over IF you interest me enough. E.g what's the battery life? |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 1:40pm On Mar 23, 2016 |
miketayo:5staG has said it. The deadline for application is March 25 but you must finish all tests by April 18. (As a side note however, the dates for interview and boot camp is conflicting on apply.andela.com and https://boards.greenhouse.io/andela/jobs/144281#.VvKNCrMo9dY . Maybe we'll buzz them about that AFTER this Algo. Lab ish is resolved. Na eem b the koko.) 1 Like |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 1:26pm On Mar 23, 2016 |
dabanzy:I'm at stage 9 already. And step up your speed bro. Time no really dey again ooo. |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 1:23pm On Mar 23, 2016 |
miketayo:The deadline is March 25 i.e this Friday. However, I don't think it's because they've closed the application process or anything similar. Why? Coz I'm answering other quizzes and labs and they're submitting without any hitches. But na just this Algo lab sha... |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 9:09am On Mar 23, 2016 |
omonosa25:1. Make sure your Chrome is updated to the lastest version. 2. I could, but I have concerns that Andela will frown on us ALL sharing and submitting a SINGLE script. But the fellas and I are here to help debug anything you write though. 1 Like |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 6:32am On Mar 23, 2016 |
5staG, dabanzy, onyebig1, miketayo and WafiJoe: I contacted dupsyturvy on Twitter yesterday and she said she'll work on it and get back to me. So, I'll let you know when she does (especially you 5staG). |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 6:29am On Mar 23, 2016 |
omonosa25:And you've tried using Chrome? Both on a mobile device and on a desktop? |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 9:53pm On Mar 22, 2016 |
dabanzy:Also had the same problem in the OOP Lab and solved it, just like you. But this problem is totally different from that one. In this case, the interpreter is not working at all for some reason, let alone give an error message! So, have you done the Algorithm Lab? |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 2:52pm On Mar 22, 2016 |
WafiJoe:I've gone back to check. It's @dupsyturvy. 1 Like |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 2:51pm On Mar 22, 2016 |
5staG:Mine isn't even testing properly and like you, I've tested it and I know everything is in order. Make we wait till the end of today sha... |
Computers / Re: Grab My HP Dv6-3023nr 4GB RAM,500GBHD, 15.6″ Display For A Cheapest Price by enigmatique(m): 8:44am On Mar 22, 2016 |
kayworld2:What's the ba3 life? |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 9:47pm On Mar 21, 2016 |
miketayo:I hope they do so. And soon. Thanks a lot. I'm solving/answering other labs/quizzes in the meantime. 1 Like |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 8:31pm On Mar 21, 2016 |
miketayo:The Algorithm Lab. The error it gives is an uninsightful "An Error occurred running your script." 1 Like |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 6:49pm On Mar 21, 2016 |
By the way WafiJoe, there was the lady I saw you chatting with on Twitter. Seems she's Mr Aboyeji's P.A or Andela's Publicity Officer or something. Had a Yoruba name: Temi something. Can you please give me her Twitter handle so that I can get across to her too about this problem? 1 Like |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 4:56pm On Mar 21, 2016 |
WafiJoe:Ok. I'm on it. |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 4:00pm On Mar 21, 2016 |
5staG:I'm experiencing the same. onyebig1 said he did but he waited a couple of days and it started working again. I don't want to wait for too long though. So bro, you aren't alone. |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 1:46pm On Mar 21, 2016 |
Sejj:Boot camp is stage 3. Stage 1 is for you to apply at (apply [dot] andela [dot] co). It's getting rather late to apply for 2016 Spring Cycle though, but give it a shot. At least the experience you garner will be of value in applying for the next cycle/batch. 1 Like |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 1:41pm On Mar 21, 2016 |
onyebig1: Ah, thank you so much! Your response is very reassuring. Now I know I'm not in an unresolvable quandary. I'll definitely try it later as advised. Above all, thanks a billion! |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 11:07am On Mar 21, 2016 |
Hi guys. I need your help testing and submitting my ALGO Lab script. No matter what I do it always says "An Error occurred while running your script". I've tried using Chrome both on mobile and on desktop, cleared Proctor's cookies in my browser etc all to no avail. HELP! cc WafiJoe, Erza, Bamoza, issaRukayat, dabanzy etc |
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 9:14pm On Mar 12, 2016 |
Ccanyanwu:You're very welcome. |
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (of 22 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 55 |