Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,711,143 members, 6,403,202 topics. Date: Sunday, 25 July 2021 at 03:37 AM

Programmers Chat Room. - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Programmers Chat Room. (2186 Views)

How To Make A Chat Room With Python / Nigerian Programmers Are Great / Programmers, Please Recommend A Good Laptop For Me. (2) (3) (4)

(1) (2) (Reply) (Go Down)

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.
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 cheesy
Re: Programmers Chat Room. by Grandlord: 8:46am On May 08, 2020
iCode2:
Grandlord

What's up? I see you're doing well. 600 hours no be beans cheesy
I'm good bro. Been a while. How are you doing?

No, man. Not really good. Let me put it into perspective. 600 hours in 6 months. Do the maths grin
Re: Programmers Chat Room. by Grandlord: 8:47am On May 08, 2020
iCode2:
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.

Great idea cool
Re: Programmers Chat Room. by iCode2: 8:56am On May 08, 2020
Grandlord:
I'm good bro. Been a while. How are you doing?

No, man. Not really good. Let me put it into perspective. 600 hours in 6 months. Do the maths grin
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!!!
Re: Programmers Chat Room. by Grandlord: 9:30am On May 08, 2020
iCode2:
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!!!
Phone? Wow! Utmost dedication and drive. That's a successful person right there! Tap into the spirit bro because I don tap o grin
Re: Programmers Chat Room. by iCode2: 9:53am On May 08, 2020
Grandlord:
Phone? Wow! Utmost dedication and drive. That's a successful person right there! Tap into the spirit bro because I don tap o grin
grin grin grin
Re: Programmers Chat Room. by Lordpeckxy(m): 9:55am On May 08, 2020
U knw sometimes, I just stare at my laptop and I am like............

3 Likes

Re: Programmers Chat Room. by DriggityDre: 3:01pm On May 08, 2020
Lordpeckxy:
U knw sometimes, I just stare at my laptop and I am like............
grin

1 Like

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
Re: Programmers Chat Room. by Grandlord: 9:21pm On May 12, 2020
iCode2:
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
Bu...nnae
Crownedro..okie
Mountain..View
Lordp..eckxy
Eji..od
Codeigni..ter
And all
Depends on your budget. But as you said, option 2 is better. You might need it for something 'heavier' in the future. Buy once and never worry about it again.
Re: Programmers Chat Room. by iCode2: 9:26pm On May 12, 2020
Grandlord:
Depends on your budget. But as you said, option 2 is better. You might need it for something 'heavier' in the future. Buy once and never worry about it again.
Budget isn't the issue. Just thinking twice about coughing out 100k for laptop grin grin Well, like you said, buy once and never worry about it again.

1 Like 1 Share

Re: Programmers Chat Room. by Taofeekdboy(m): 10:12pm On May 12, 2020
iCode2:
Budget isn't the issue. Just thinking twice about coughing out 100k for laptop grin grin Well, like you said, buy once and never worry about it again.
I think option 2 is much more better but if you can close your eyes and buy a laptop of ssd drive, even if the size is 128gb, you won't regret you did because of their speed. It will help you in the future as you are adding software to your system.
Re: Programmers Chat Room. by iCode2: 10:25pm On May 12, 2020
Taofeekdboy:

I think option 2 is much more better but if you can close your eyes and buy a laptop of ssd drive, even if the size is 128gb, you won't regret you did because of their speed. It will help you in the future as you are adding software to your system.
Really? I actually saw ssd but requested for hdd because I don't know much about it. Doesn't it have issues with crashing?
Re: Programmers Chat Room. by crownedrookie(m): 10:34pm On May 12, 2020
iCode2:
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: Granrd
Bue
Crowroie
Mountaew
Lordpxy
Eod
Codniter
And all
Do not buy a 4g RAM laptop
Re: Programmers Chat Room. by Taofeekdboy(m): 10:35pm On May 12, 2020
iCode2:
Really? I actually saw ssd but requested for hdd because I don't know much about it. Doesn't it have issues with crashing?
bro, the reason my most people prefer hdd drive is because of the price.. Ssd is very expensive but the speed is second to none, I was using hdd before, crashes everytime and very slow but since when I have changed to ssd, I regret ever buying an hdd laptop.
Re: Programmers Chat Room. by iCode2: 10:43pm On May 12, 2020
Okay thanks. I'll look into that.
Taofeekdboy:
bro, the reason my most people prefer hdd drive is because of the price.. Ssd is very expensive but the speed is second to none, I was using hdd before, crashes everytime and very slow but since when I have changed to ssd, I regret ever buying an hdd laptop.
crownedrookie:

Do not buy a 4g RAM laptop
Is a 14" okay for programming? Someone advised against it.
Re: Programmers Chat Room. by Lordpeckxy(m): 6:23pm On May 13, 2020
iCode2:

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?
truth Is You don't need It.!!!!!
You can go any which of them, its still alright..
Some times Its not about the machine, its about whose driving it.!
Re: Programmers Chat Room. by LSarcastic: 11:58pm On May 13, 2020
iCode2:
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

Buy whatever your money can afford. As a beginner, I can tell you that for your first year of programming, you'll rarely need more than the first one. Except you're dealing with a field that requires a PC with high processing capability like animations, developing android apps, machine learning, systems programming.
Except that, your choice of PC won't matter much. It all depends on you. Why waste cash on the second when the first would serve you.

1 Like

Re: Programmers Chat Room. by Brukx(m): 7:49am On May 14, 2020
This place should be spiced up
Re: Programmers Chat Room. by iCode2: 8:40am On May 14, 2020
Thanks much @ LSarcastic, Lordpeckxy

1 Like

Re: Programmers Chat Room. by LSarcastic: 5:50pm On May 14, 2020
iCode2:
Thanks much @ LSarcastic, Lordpeckxy
We've all got to give back to the community
Cheers!
Re: Programmers Chat Room. by bluepipsFX: 8:45pm On May 14, 2020
iCode2:
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.


I NEED AN EXPERT IN APP DEVELOPMENT , CODING AND FACEBOOK ADS RUNNING, DROP YOUR DETAILS, URGENT BUSINESS IS BECKONING, THANKS
Re: Programmers Chat Room. by ibleru: 1:43am On May 15, 2020
NIGERIA PROGRAMMERS WHATSAPP GROUO


https:///H2cRDQtYtDS2uWrkwjZzxq

Re: Programmers Chat Room. by Lordpeckxy(m): 9:02am On May 15, 2020
bluepipsFX:


I NEED AN EXPERT IN APP DEVELOPMENT , CODING AND FACEBOOK ADS RUNNING, DROP YOUR DETAILS, URGENT BUSINESS IS BECKONING, THANKS
we got you covered....
Re: Programmers Chat Room. by KINGBEN1(m): 10:20am On May 15, 2020
Join in

1 Like 1 Share

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:


def collatz(number):
if number % 2 == 0:
return print(number // 2)
elif number % 2 == 1:
return print(3 * number + 1)

number =int(input())
while number != 1:
collatz(number)


What am I not doing right?
Cc: Grandlord
Bunnae
Crownedrookie
Lordpeckxy
Codeigniter
And all

1 Like

Re: Programmers Chat Room. by codeigniter(m): 12:55pm On May 18, 2020
iCode2:
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:


def collatz(number):
if number % 2 == 0:
return print(number // 2)
elif number % 2 == 1:
return print(3 * number + 1)

number =int(input())
while number != 1:
collatz(number)


What am I not doing right?
Cc: Grandlord
Bunnae
Crownedrookie
Lordpeckxy
Codeigniter
And all



def collatz():
if number % 2 == 0:
return number // 2

elif number % 2 == 1:
return 3 * number + 1



number = int(input())

while number != 1:
number = collatz()
print(number)

Passing number as argument will make it call the same number

I hope this helps

1 Like

Re: Programmers Chat Room. by iCode2: 2:47pm On May 18, 2020
codeigniter:




def collatz():
if number % 2 == 0:
return number // 2

elif number % 2 == 1:
return 3 * number + 1



number = int(input())

while number != 1:
number = collatz()
print(number)

Passing number as argument will make it call the same number

I hope this helps
I see where I missed it. Thanks a lot, it worked!
Re: Programmers Chat Room. by Grandlord: 4:07pm On May 18, 2020
iCode2:
I see where I missed it. Thanks a lot, it worked!
Good. You're doing well smiley
Re: Programmers Chat Room. by iCode2: 4:36pm On May 18, 2020
Grandlord:
Good. You're doing well smiley
Thank you sir. grin
Re: Programmers Chat Room. by Grandlord: 7:39pm On May 18, 2020
iCode2:
Thank you sir. grin
No dey whine me smiley

Where did you get the exercises from, please?

(1) (2) (Reply)

The Rise And Fall Of 2go Social Media Mobile chat Network / I Want To Learn How To Build Network Cheats. / Web Development Opportunity In Python And Django

(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 - 2021 Oluwaseun Osewa. All rights reserved. See How To Advertise. 175
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.