Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,773 members, 7,817,159 topics. Date: Saturday, 04 May 2024 at 07:24 AM

Enigmatique's Posts

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:


i made amends as instructed but still getting thesame error


but, check this ALgo lab
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:
update..... i re-wrote the whole prime_number code and now its finally working smiley
Glad to hear that!
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 12:39pm On Mar 28, 2016
omonosa25:



am on the OOP lab now and when i click test code, it writes something about not been serializable...( i can swear my code is correct, coz i tested it with my python interpreter before uploading it)


class BankAccount:
def _init_(self, balance):
self.balance = balance
def Deposit (self, amount):
self.amount = amount
balance += amount
return balance
def Withdraw (self, amount):
if amount < balance:
return 'invalid transaction'
else:
balance -= amount
return balance

class MinimumBalanceAccount(BankAccount):
pass
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:
this is what happens when i click submit

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 wink ).
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 7:16am On Mar 28, 2016
5staG:
@Enigmatique: this is the last code I tried to submit:

def prime_number(num):
If num == 1 or num % 2 == 0:
return False
else:
return True




def get_algorithm_result(mylist):
largest = mylist[0]
for i in range(1, len(mylist)):
if largest < mylist[i]:
largest = mylist[i]
if mylist.index(mylist[i]) == len(mylist) - 1:
break
else:
continue

return largest

Sorry for the appearance of the code. This text editor removes all indentation and whitespaces. But I've tested the code severally and it works..I hope you can make sense of it like this

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 smiley ).

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:


what was that abt?....some sorta iv too?
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:
@enigmatique congrats!!!!>>>>> wink
i'll also try as much 2 finish up 2day or latest 2moro....
i hope u also got the open saturday invitation by andela?
i got a mail some days back that contains an invite 2 andela's yaba office next week saturday
i really hope i fall among d first 60 pple as they said in d mail....
and hope u guiz also filled d form....
if so, perhaps we might meet there cool who knows?

well meanwhile.....


home study ti take over!!
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:

I don't have access to any android phone right now, but at least I'll try removing the comments, though I still fail to see how that might be part of the problem. All the modifications I make to the code pass the tests, but when I try to submit the system just rejects it. The funny part of it is that if you complain to Andela they'll mail an auto-reply back to you
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:


I don't even use an android phone. I'm doing the test with chrome browser on my pc. I can't even begin to understand how that will affect my code..
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:

Lol. Congrats. See you soon.
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:
The system is still AVAILABLE...

Please, you must be in Lagos.
Call on 08134660000
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:


i was able to submit mine sometime in February... when is the deadline again?
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:


am doing the Algorithm Lab 2day....and i jst hope it doesnt give me any problem...
@enigmatique what stage are u in d test?
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:


i was able to submit mine sometime in February... when is the deadline again?
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:




i have used chrome and all other browser, but i haven't tried mobile.....


Can you guys please post your solutions to the Labs here...
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. smiley

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:




Good for you guys. But, am still having the NO CURRICULUM LOADED error. i have not been able to take the test.
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:
with what i've seen 2day, if any code frm d lab isnt running....it might jst be one tiny error and d annoying part is that d error msg u'd get might not really be helpful angry
sometimes ur code is fully ok and running but its still throwing error right?....
read d questions again and use exactly what they asked u 2 use
lemme share my experience 2day
i did d oop lab 2day and it kept throwing one useless error msg and i was jst stuck
so i had 2 write d same code in my python shell and everything was ok and jst 2 be sure i used some online code compiler
including codecademy and it ran like gear 5
but it kept throwing error until i saw d real cause
i used print("invalid transaction" )
instead of return("invalid transaction" )
and it ran after making that change smiley
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:

Sorry, don't know who you are talking about.
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:


The Algo Lab..I can't remember exactly, but it says something like: 'your code failed to pass all the tests' whenever I try to submit. But I know all the code I tried was correct, and when I test them they pass the tests. The issue is just with submiting I think..
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:


I base in Lagos.

Please note that, I'm not accepting paying into my account and send you the laptop or POD.
You have to reside in Lagos to see what you wana buy.

Very neat and working perfectly.
What's the ba3 life?
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 9:47pm On Mar 21, 2016
miketayo:


oh that is a glitch from there end... they should resolve it soon.. I had similar problems too
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:


which lab test exactly? and what is the error
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:


OnyeBig1 is right but you may want to contact @andela_nigeria on twitter to get an assurance.

Cheers
Ok. I'm on it.
Jobs/Vacancies / Re: Andela: IT Training And Job by enigmatique(m): 4:00pm On Mar 21, 2016
5staG:
Hi guys, please I need help asap with the Algo Lab section of the homestudy test. Any code I try to submit is rejected, even though it passes the test. I Really don't understand what the issue is. Did anyone experience that? How did you get through?
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:


Please how can one apply for the boot camp?
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:



try it another day it will submit.
it happen this same to me on tuesday . i retry it on saturday and it work

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:
Thanks Bro
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
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.