Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,167,165 members, 7,867,385 topics. Date: Friday, 21 June 2024 at 03:06 PM |
Nairaland Forum / Nairaland / General / Jobs/Vacancies / Andela: IT Training And Job (627599 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: 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: What do you need? |
Re: Andela: IT Training And Job by Sirmuel1(m): 11:38pm On Sep 01, 2016 |
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: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: 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: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: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: 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: 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: 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: 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: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: 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: 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: 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: 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: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: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: 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: 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: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: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: 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. 48 |