Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,158,198 members, 7,835,969 topics. Date: Tuesday, 21 May 2024 at 06:26 PM

Andela: IT Training And Job - Jobs/Vacancies (116) - Nairaland

Nairaland Forum / Nairaland / General / Jobs/Vacancies / Andela: IT Training And Job (624284 Views)

Letter To All Fresh Graduates and Job seekers / Andela: IT Training And Job - Jobs/vacancies / Similarities Between Football And Job (2) (3) (4)

(1) (2) (3) ... (113) (114) (115) (116) (117) (118) (119) ... (263) (Reply) (Go Down)

Re: Andela: IT Training And Job by Sirmuel1(m): 2:18pm On Sep 01, 2016
evergold:

Nan. Believe me, I did all myself.

I need your help badly...I hope we can talk better
Re: Andela: IT Training And Job by evergold(m): 3:07pm On Sep 01, 2016
Sirmuel1:



I need your help badly...I hope we can talk better

What do you need?
Re: Andela: IT Training And Job by Sirmuel1(m): 11:38pm On Sep 01, 2016
evergold:


What do you need?



please can we talk on whatsapp?
Re: Andela: IT Training And Job by evergold(m): 8:40am On Sep 02, 2016
Whatsapp
Re: Andela: IT Training And Job by Umu101: 3:41am On Sep 04, 2016
.
Re: Andela: IT Training And Job by D34lw4p(m): 7:20am On Sep 04, 2016
Umu101:

please guys how do I force an argument to be a list, tuple, dict etc. particularly lists. I tried
assert type (arg)==type([]).
it asserts to true if the argument is a list . but the proctor site doesn't still give me a pass.
please I am challenged by Evergold . help me with the syntax required to test arguments for their data structures.
check if there're one or two other test your codes are not passing.
Re: Andela: IT Training And Job by evergold(m): 10:26am On Sep 04, 2016
Umu101:

please guys how do I force an argument to be a list, tuple, dict etc. particularly lists. I tried
assert type (arg)==type([]).
it asserts to true if the argument is a list . but the proctor site doesn't still give me a pass.
please I am challenged by Evergold . help me with the syntax required to test arguments for their data structures.

You can use if isinstance (mylist, list) : or (mydict, dict) : or (mytuple, tuple) :

And also ensure that you raise a ValueError() exception where necessary.
Re: Andela: IT Training And Job by amamazzing: 6:04am On Sep 05, 2016
.
Re: Andela: IT Training And Job by anathemiamia(f): 6:18am On Sep 05, 2016
.
Re: Andela: IT Training And Job by amamazzing: 7:34am On Sep 05, 2016
evergold or any one else who's been thru this, please help
Re: Andela: IT Training And Job by Folzye(m): 8:38am On Sep 05, 2016
guys what could be wrong with my TAX lab, I wrote this piece of code in my the python programme itself and it worked fine, but showing errors ob the proctor site


def calculate_tax(dic):
result = {}
for name in dic.keys():
if dic[name] <= 1000:
result[name] = 0 * dic[name]
elif dic[name] <= 10000:
result[name] = (0 * 1000) + (0.1 * (dic[name] - 1000))
elif dic[name] <= 20200:
result[name] = (0 * 1000) + (0.1 * (9000)) + ( 0.15 * (dic[name] - 10000))
elif dic[name] <= 30750:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (dic[name] - 20200))
elif dic[name] <= 50000:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (10550)) + (0.25 * (dic[name] - 30750))
else:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (10550)) + (0.25 * (19250)) + ( 0.30 * (dic[name] - 50000))
return result

calculate_tax({'Alex':500, 'James':20500, 'Kinuthia':70000})


please someone help me with ideas to fix this correctly
Re: Andela: IT Training And Job by Makanjuola89: 10:09am On Sep 05, 2016
D34lw4p:
lol, you're very wrong there! I applied with them and got to the bootcamp stage but only made it to the first week before I got eliminated and I can confidently tell you that Andela is currently working on the test link probably they don't want to repeat the same questions with the previous ones. My question for you is have you taken your time to study hard enough?
I don't have any coding knowledge. can I pass the test?
Re: Andela: IT Training And Job by Makanjuola89: 10:16am On Sep 05, 2016
D34lw4p:
it will be based on everything in that homestudy pdf file you downloaded.
Pls will I be asked to write code? I have no idea of what coding is.
Re: Andela: IT Training And Job by omonosa25(m): 10:37am On Sep 05, 2016
Folzye:
guys what could be wrong with my TAX lab, I wrote this piece of code in my the python programme itself and it worked fine, but showing errors ob the proctor site


def calculate_tax(dic):
result = {}
for name in dic.keys():
if dic[name] <= 1000:
result[name] = 0 * dic[name]
elif dic[name] <= 10000:
result[name] = (0 * 1000) + (0.1 * (dic[name] - 1000))
elif dic[name] <= 20200:
result[name] = (0 * 1000) + (0.1 * (9000)) + ( 0.15 * (dic[name] - 10000))
elif dic[name] <= 30750:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (dic[name] - 20200))
elif dic[name] <= 50000:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (10550)) + (0.25 * (dic[name] - 30750))
else:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (10550)) + (0.25 * (19250)) + ( 0.30 * (dic[name] - 50000))
return result

calculate_tax({'Alex':500, 'James':20500, 'Kinuthia':70000})


please someone help me with ideas to fix this correctly


Try to make sure your code is properly indented....
Re: Andela: IT Training And Job by Folzye(m): 10:51am On Sep 05, 2016
omonosa25:



Try to make sure your code is properly indented....

It's well Indented, pls someone just give me a hint.. am not asking for my code to be written fire and me
Re: Andela: IT Training And Job by evergold(m): 11:08am On Sep 05, 2016
Folzye:
guys what could be wrong with my TAX lab, I wrote this piece of code in my the python programme itself and it worked fine, but showing errors ob the proctor site


def calculate_tax(dic):
result = {}
for name in dic.keys():
if dic[name] <= 1000:
result[name] = 0 * dic[name]
elif dic[name] <= 10000:
result[name] = (0 * 1000) + (0.1 * (dic[name] - 1000))
elif dic[name] <= 20200:
result[name] = (0 * 1000) + (0.1 * (9000)) + ( 0.15 * (dic[name] - 10000))
elif dic[name] <= 30750:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (dic[name] - 20200))
elif dic[name] <= 50000:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (10550)) + (0.25 * (dic[name] - 30750))
else:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (10550)) + (0.25 * (19250)) + ( 0.30 * (dic[name] - 50000))
return result

calculate_tax({'Alex':500, 'James':20500, 'Kinuthia':70000})


please someone help me with ideas to fix this correctly

What error is it showing you. The code is correct, but I don't know if you have satisfied all the test cases. So let's see the error it is showing you.
Re: Andela: IT Training And Job by Folzye(m): 11:28am On Sep 05, 2016
evergold:


What error is it showing you. The code is correct, but I don't know if you have satisfied all the test cases. So let's see the error it is showing you.

there is an error running your script, and some load test errors... pls evergold tell me Wot i can do to rewrite the code to fit the proctor spec,.. then for the tests, I called the function and pass in the argument... am I supposed to b writing another fxn to pass each test?
Re: Andela: IT Training And Job by D34lw4p(m): 2:02pm On Sep 05, 2016
Makanjuola89:

I don't have any coding knowledge. can I pass the test?
yes you can but you need to study deeply the content of the homestudy PDF files.

1 Like

Re: Andela: IT Training And Job by slimthando(m): 3:05pm On Sep 05, 2016
evergold:


What error is it showing you. The code is correct, but I don't know if you have satisfied all the test cases. So let's see the error it is showing you.


Internal Error: runTests aborted: TestOutcomeEvent(handled=False, test=, result=, outcome='error', exc_info=(, AttributeError("'_AssertRaisesContext' object has no attribute 'exception'",), ), reason=None, expected=False, shortLabel=None, longLabel=None) is not JSON serializable
Re: Andela: IT Training And Job by worisj(m): 3:25pm On Sep 05, 2016
Ive done the plum test, please whats next?
Re: Andela: IT Training And Job by Spyde(m): 7:44pm On Sep 05, 2016
Folzye:
guys what could be wrong with my TAX lab, I wrote this piece of code in my the python programme itself and it worked fine, but showing errors ob the proctor site


def calculate_tax(dic):
result = {}
for name in dic.keys():
if dic[name] <= 1000:
result[name] = 0 * dic[name]
elif dic[name] <= 10000:
result[name] = (0 * 1000) + (0.1 * (dic[name] - 1000))
elif dic[name] <= 20200:
result[name] = (0 * 1000) + (0.1 * (9000)) + ( 0.15 * (dic[name] - 10000))
elif dic[name] <= 30750:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (dic[name] - 20200))
elif dic[name] <= 50000:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (10550)) + (0.25 * (dic[name] - 30750))
else:
result[name] = (0 * 1000) + (0.1 * (9000)) + (0.15 * (10200)) + (0.2 * (10550)) + (0.25 * (19250)) + ( 0.30 * (dic[name] - 50000))
return result

calculate_tax({'Alex':500, 'James':20500, 'Kinuthia':70000})


please someone help me with ideas to fix this correctly


don't bother calling the function, the test will do that
Re: Andela: IT Training And Job by Folzye(m): 7:51pm On Sep 05, 2016
Spyde:



don't bother calling the function, the test will do that


bro, i don't get you..,. cos d fxn I called in the last line was to test the function code written above
Re: Andela: IT Training And Job by Spyde(m): 1:04am On Sep 06, 2016
Folzye:



bro, i don't get you..,. cos d fxn I called in the last line was to test the function code written above

when u are testing d code on ur laptop u need to call the calculate_tax function, but on the proctor, i dont think u need that as long as u've returned the 'result', i.e all ur code without the "calculate_tax({'Alex':500, 'James':20500, 'Kinuthia':70000})", i dont know if u get what i mean
Re: Andela: IT Training And Job by joe4866: 1:31am On Sep 06, 2016
Folzye:



bro, i don't get you..,. cos d fxn I called in the last line was to test the function code written above
try this
def calculate_tax(people):
while True:
try:
iterating_people = people.keys()
for key in iterating_people:
earning = people[key]
if earning <= 1000:
people[key] = 0
elif earning in range(1001,10001):
tax1 = 0 * 1000
tax2 = 0.1 * (earning - 1000)
total_tax = tax1 + tax2
people[key] = total_tax
elif earning in range(10001,20201):
tax1 = 0 * 1000
tax2 = 0.1 *9000
tax3 = 0.15 * (earning - 10000)
total_tax = tax1+tax2+tax3
people[key] = total_tax
elif earning in range(20201,30751):
tax1 = 0 * 1000
tax2 = 0.1 * 9000
tax3 = 0.15 * 10200
tax4 = 0.20 * (earning - 20200)
total_tax = tax1+tax2+tax3+tax4
people[key] = total_tax
elif earning in range(30751,50001):
tax1 = 0 * 1000
tax2 = 0.1 * 9000
tax3 = 0.15 * 10200
tax4 = 0.20 * 10550
tax5 = 0.25 * (earning - 30750)
total_tax = tax1+tax2+tax3+tax4+tax5
people[key] = total_tax
elif earning > 50000:
tax1 = 0 * 1000
tax2 = 0.1 * 9000
tax3 = 0.15 * 10200
tax4 = 0.20 * 10550
tax5 = 0.25 * 19250
tax6 = 0.3 * (earning - 50000)
total_tax = tax1+tax2+tax3+tax4+tax5+tax6
people[key] = total_tax
return people
break
except (AttributeError,TypeError):
raise ValueError('The provided input is not a dictionary')
Re: Andela: IT Training And Job by Umu101: 7:00pm On Sep 06, 2016
worisj:
Ive done the plum test, please whats next?
what's the most important criteria in the home study quiz. is it scores, speed, personality fit, or what.
Re: Andela: IT Training And Job by Charpell(m): 7:22am On Sep 07, 2016
Sheyone:
They are having 2 plans dat of $25per month and $49 per month but that of $25 will do, you can actually pause your subscription and about the videos i do not stream them i always download along with the project materials so that i can watch and do anyday anytime. Only video tutorials tho and you can try them for free for 14days but the videos are not downloadable within that period.

Hello Sheyone

Please how can I get your videos, will be very grateful. Thanks
Re: Andela: IT Training And Job by baba11(m): 10:35am On Sep 07, 2016
Is it possible to study the homestudy in two weeks
Re: Andela: IT Training And Job by Umu101: 4:58pm On Sep 08, 2016
Folzye:


It's well Indented, pls someone just give me a hint.. am not asking for my code to be written fire and me

The key to passing this test is simple:
Stay away from the CHURCH!!. don't let them cast the PYTHON out of you!!!!.

1 Like 1 Share

Re: Andela: IT Training And Job by Folzye(m): 5:03pm On Sep 08, 2016
Umu101:

The key to passing this test is simple: Stay away from the CHURCH!!. don't let them cast the PYTHON out of you!!!!.
what is you saying?? #drunk?
Re: Andela: IT Training And Job by omonosa25(m): 5:47pm On Sep 08, 2016
who has written the code for the DS lab?... should help me with hint...
Re: Andela: IT Training And Job by Ifedayosteven(m): 5:59pm On Sep 08, 2016
omonosa25:
who has written the code for the DS lab?... should help me with hint...
I recognize ur moniker from SA thread. Have you heard anything from them. Did u do the interview with the MD
Re: Andela: IT Training And Job by omonosa25(m): 7:43pm On Sep 08, 2016
Ifedayosteven:

I recognize ur moniker from SA thread. Have you heard anything from them. Did u do the interview with the MD

Have not heard from them. yeah, I did the interview with the MD... U?

1 Like

(1) (2) (3) ... (113) (114) (115) (116) (117) (118) (119) ... (263) (Reply)

How To Apply For Nigeria Immigration Service (NIS) Recruitment 2017 / Federal Road Safety Commission 2018 Recruitment: How To Apply / FIRS To Recruit 1,250 New Staff

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