Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,466 members, 7,954,824 topics. Date: Saturday, 21 September 2024 at 10:16 AM |
Nairaland Forum / ICode2's Profile / ICode2's Posts
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (of 13 pages)
Programming / Re: Funny Programming Memes. Just For Laughs by iCode2: 7:59pm On May 25, 2020 |
crownedrookie: 1 Like |
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by iCode2: 2:35pm On May 24, 2020 |
Graspad:Hi, can I talk to you offline? Maybe on WhatsApp.. |
Programming / Re: Common good python programming practices you should know by iCode2: 7:14pm On May 22, 2020 |
Hi gbolly1151, you seem to be very good with Python. When did you start learning? And are you self-taught? 1 Like |
Programming / Re: Let Learn Artificial Neutral Network by iCode2: 7:47pm On May 20, 2020 |
gbolly1151:Hmmm nice one 1 Like |
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by iCode2: 7:46pm On May 20, 2020 |
HappyPagan:It worked! Thanks |
Programming / Re: Let Learn Artificial Neutral Network by iCode2: 7:37pm On May 20, 2020 |
This looks like Physics. 1 Like |
Programming / Re: Chronicle Of A Data Scientist/analyst by iCode2: 7:34pm On May 20, 2020 |
whizqueen:See this girl! Hi from on old friend from 2015 Nairaland. Wish you the best in your study. |
Programming / Re: Common good python programming practices you should know by iCode2: 10:48pm On May 18, 2020 |
gbolly1151:Alright, thanks. |
Programming / Re: Common good python programming practices you should know by iCode2: 8:17pm On May 18, 2020 |
Can anyone recommend good python books with a lot of exercises? I just started out with automate the boring stuff. 1 Like |
Programming / Re: Common good python programming practices you should know by iCode2: 8:16pm On May 18, 2020 |
Predstan:Nope.. |
Programming / Re: Programmers Chat Room. by iCode2: 8:13pm On May 18, 2020 |
Grandlord:Lol. Automate the boring stuff. 2 Likes 1 Share |
Programming / Re: Common good python programming practices you should know by iCode2: 7:45pm On May 18, 2020 |
gbolly1151:I got the correct output from this. Thanks 1 Like |
Programming / Re: Common good python programming practices you should know by iCode2: 7:44pm On May 18, 2020 |
Predstan:Thanks but it didn't give the right output. |
Programming / Re: Programmers Chat Room. by iCode2: 4:36pm On May 18, 2020 |
Grandlord:Thank you sir. |
Programming / Re: Programmers Chat Room. by iCode2: 2:47pm On May 18, 2020 |
codeigniter:I see where I missed it. Thanks a lot, it worked! |
Programming / Re: Common good python programming practices you should know by iCode2: 11:55am On May 18, 2020 |
Hey guys, so, I'm trying my hands on this exercise: The Collatz Sequence Write a function named collatz() that has one parameter named number. If number is even, then collatz() should print number // 2 and return this value. If number is odd, then collatz() should print and return 3 * number + 1. Then write a program that lets the user type in an integer and that keeps calling collatz() on that number until the function returns the value 1. (Amazingly enough, this sequence actually works for any integer—sooner or later, using this sequence, you’ll arrive at 1! Even mathematicians aren’t sure why. Your program is exploring what’s called the Collatz sequence, sometimes called “the simplest impossible math problem.”) Remember to convert the return value from input() to an integer with the int() function; otherwise, it will be a string value. Hint: An integer number is even if number % 2 == 0, and it’s odd if number % 2 == 1. Here's my code:
What am I not doing right? |
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by iCode2: 11:52am On May 18, 2020 |
Hey guys, so, I'm trying my hands on this exercise: The Collatz Sequence Write a function named collatz() that has one parameter named number. If number is even, then collatz() should print number // 2 and return this value. If number is odd, then collatz() should print and return 3 * number + 1. Then write a program that lets the user type in an integer and that keeps calling collatz() on that number until the function returns the value 1. (Amazingly enough, this sequence actually works for any integer—sooner or later, using this sequence, you’ll arrive at 1! Even mathematicians aren’t sure why. Your program is exploring what’s called the Collatz sequence, sometimes called “the simplest impossible math problem.”) Remember to convert the return value from input() to an integer with the int() function; otherwise, it will be a string value. Hint: An integer number is even if number % 2 == 0, and it’s odd if number % 2 == 1. Here's my code:
What am I not doing right? Cc: Daejoyoung And all |
Programming / Re: Programmers Chat Room. by iCode2: 11:48am On May 18, 2020 |
Hey guys, so, I'm trying my hands on this exercise: The Collatz Sequence Write a function named collatz() that has one parameter named number. If number is even, then collatz() should print number // 2 and return this value. If number is odd, then collatz() should print and return 3 * number + 1. Then write a program that lets the user type in an integer and that keeps calling collatz() on that number until the function returns the value 1. (Amazingly enough, this sequence actually works for any integer—sooner or later, using this sequence, you’ll arrive at 1! Even mathematicians aren’t sure why. Your program is exploring what’s called the Collatz sequence, sometimes called “the simplest impossible math problem.”) Remember to convert the return value from input() to an integer with the int() function; otherwise, it will be a string value. Hint: An integer number is even if number % 2 == 0, and it’s odd if number % 2 == 1. Here's my code:
What am I not doing right? Cc: Grandlord Bunnae Crownedrookie Lordpeckxy Codeigniter And all 1 Like |
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by iCode2: 8:40pm On May 15, 2020 |
Daejoyoung:I thought html and css is front end? |
Programming / Re: Programmers Chat Room. by iCode2: 8:40am On May 14, 2020 |
Thanks much @ LSarcastic, Lordpeckxy 1 Like |
Programming / Re: Best Laptops For Programmers by iCode2: 11:50pm On May 12, 2020 |
silento:I'm just starting out sha. And I think wider screen equals more money.. Right? |
Programming / Re: Programmers Chat Room. by iCode2: 10:43pm On May 12, 2020 |
Okay thanks. I'll look into that. Taofeekdboy: crownedrookie:Is a 14" okay for programming? Someone advised against it. |
Programming / Re: Best Laptops For Programmers by iCode2: 10:41pm On May 12, 2020 |
silento:You mean a 14" hp Elitebook Folio isn't good enough for programming? |
Programming / Re: Programmers Chat Room. by iCode2: 10:25pm On May 12, 2020 |
Taofeekdboy:Really? I actually saw ssd but requested for hdd because I don't know much about it. Doesn't it have issues with crashing? |
Programming / Re: Programmers Chat Room. by iCode2: 9:26pm On May 12, 2020 |
Grandlord:Budget isn't the issue. Just thinking twice about coughing out 100k for laptop Well, like you said, buy once and never worry about it again. 1 Like 1 Share |
Jobs/Vacancies / Re: Having Difficult Times Securing A Job, Or Need A Side Hustle? Check This Out! by iCode2: 9:14pm On May 12, 2020 |
bunnae:You knew these guys? How come I don't remember you in my former moniker? |
Programming / Re: Programmers Chat Room. by iCode2: 9:12pm On May 12, 2020 |
Hello guys Quick one: Which is the better option to go for (a noob) Option 1 - 4gb RAM, 500GB hdd, core i5 --> #80k - #90k Option 2 - 8GB RAM, 500GB hdd, core i7 --> #100k - #110k I know option 2 is of a higher quality but do I really need all that as a noob? Cc: Grandlord Bunnae Crownedrookie MountainView Lordpeckxy Ejiod Codeigniter And all |
Programming / Re: Programmers Chat Room. by iCode2: 9:53am On May 08, 2020 |
Grandlord: |
Programming / Re: Programmers Chat Room. by iCode2: 8:56am On May 08, 2020 |
Grandlord:Lol it's still very much commendable. I actually lost the drive cos my laptop was faulty until yesterday I stumbled on someone doing a lot with her phone!!! |
Programming / Re: Programmers Chat Room. by iCode2: 5:44am On May 08, 2020 |
Grandlord What's up? I see you're doing well. 600 hours no be beans |
Programming / Programmers Chat Room. by iCode2: 5:43am On May 08, 2020 |
Hey guys, I feel the need to have a thread like this in this section. It'll help curb derailing on other threads, serve as a platform to ask random questions instead of creating a new thread for every single question you want to ask. We can even network and share ideas here. |
Jobs/Vacancies / Re: Having Difficult Times Securing A Job, Or Need A Side Hustle? Check This Out! by iCode2: 5:06pm On Apr 09, 2020 |
Grandlord:Lol. How's the isolation affecting you guys? |
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (of 13 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. 46 |