Health › Re: How I Get Hard And Sustainable Erection Anytime I Want It by Southboy(m): 11:29pm On Dec 26, 2017 |
Menkachi85@yahoo.com |
Career › Re: Anyone Trained With Career Insights Nigeria? by Southboy(m): 6:46pm On Dec 03, 2017 |
Did u go through with the program? |
Technology Market › Re: DISTRESS SALES ONLY - We Buy Your Phone with screen issues by Southboy(m): 8:09am On Nov 19, 2017 |
I have an iPhone 5, icloud lock, the screen popped up wen transporting it to 9ja frm d US. Though d screen works perfectly well WHATSAPP 08066264685 |
Technology Market › Re: Tecno Boom J8 For Sale by Southboy(op): 9:40pm On Oct 26, 2017 |
hayjayman: After you Don root am, rendering the warranty void less..... And the phone is highly exposed to series of malfunctions... Goodluck o If u r not interested in buying , y not move on. Have u nt heard of unroot b4? Anyway it's been sold |
Technology Market › Re: Tecno Boom J8 For Sale by Southboy(op): 7:58am On Oct 26, 2017 |
Still available |
Technology Market › Re: Tecno Boom J8 For Sale by Southboy(op): 10:03am On Oct 25, 2017 |
Still available |
Technology Market › Re: Tecno Boom J8 For Sale by Southboy(op): 9:17am On Oct 24, 2017 |
Still Available |
Technology Market › Re: Tecno Boom J8 For Sale by Southboy(op): 5:40pm On Oct 23, 2017 |
Still available |
Technology Market › Re: Tecno Boom J8 For Sale by Southboy(op): 7:42am On Oct 23, 2017 |
SA |
Technology Market › Re: Tecno Boom J8 For Sale by Southboy(op): 8:25pm On Oct 22, 2017 |
|
Technology Market › Re: Tecno Boom J8 For Sale by Southboy(op): 6:46pm On Oct 22, 2017 |
More pix
|
Technology Market › Tecno Boom J8 For Sale by Southboy(op): 6:45pm On Oct 22, 2017*. Modified: 11:11am On Oct 25, 2017 |
Working perfectly 2Gb Ram 16Gb Rom Black Android 7 Nougart Custom Rom 4G Network Lagos Island 27k 08066264685
|
Technology Market › Re: Hp Elitebook Intel Core I5, 8gb Ram For Sell by Southboy(op): 12:13am On Oct 17, 2017 |
80k Lagos |
Technology Market › Re: Hp Elitebook Intel Core I5, 8gb Ram For Sell by Southboy(op): 5:53pm On Oct 16, 2017 |
Available
|
Technology Market › Hp Elitebook Intel Core I5, 8gb Ram For Sell by Southboy(op): 5:49pm On Oct 16, 2017*. Modified: 2:33pm On Oct 19, 2017 |
Hp 8470p Elitebook Intel i5 3rd Generation. 8Gb Ram Windows10 64bit Games Installed( PES16, NBA 2k14, Metal Gear Ground Zero, Inversion 500Gb HDD 2.5GHz Processor Working perfectly Call 08024.47368.3 Lagos
|
Sports › Re: Get Airtime When You Register On BETWAZOBIA.COM by Southboy(op): 10:54am On Oct 12, 2017 |
Still open for those interested |
Sports › Get Airtime When You Register On BETWAZOBIA.COM by Southboy(op): 2:01pm On Oct 08, 2017 |
Hey guyz,
Betwazobia is a gaming website like 9jabet and the rest but our games are being played online.
HOW TO GET AIRTIME Register on betwazobia.com with the referral code 0154 and send the username and password to 08024473683 for confirmation. Immediately after confirmation, you get your airtime. The more people you register the more airtime you will get.
Register ten numbers and get N500 worth of airtime immediately.
The accounts you registered will also be topped up for you to stake with free. |
Christianity Etc › Re: What Is The Essence Of Judgement Day When God Already Knows Our Heart? by Southboy(op): 9:03am On Oct 08, 2017 |
An2elect2: Haven't you read in Psalm 33:5 that the Lord loves righteousness and judgement...?
It's is part of God's nature to be just. [strong] And so it would be out of touch if God throws people in to hell without letting them know why He did.[/strong] It makes sense. |
Christianity Etc › Re: What Is The Essence Of Judgement Day When God Already Knows Our Heart? by Southboy(op): 8:54am On Oct 08, 2017 |
GodsMopol: 1 Tim 2:3 For this is good and acceptable in the sight of God our Saviour; 4 Who will have all men to be saved, and to come unto the knowledge of the truth...
God desires that all men be saved
Man sins when he's driven by lust
That verse,, just showed me sth
God our saviour, God manifesting as flesh, to become our saviour, I have read that verse like 15 times and I didn't notice that I don't get the point you are trying to make here |
Christianity Etc › What Is The Essence Of Judgement Day When God Already Knows Our Heart? by Southboy(op): 8:25am On Oct 08, 2017 |
Good morning and happy Sunday to everyone. I woke up this morning to the argument of some of my neighbors about judgement day and it hit me, what's the essence of lining up waiting to be judged by God when he already knows what the answer to the question is?
Am only here for the knowledge |
Programming › Re: Programming Videos And Books For FREE by Southboy(m): 12:19pm On Sep 05, 2017*. Modified: 3:53pm On Sep 06, 2017 |
MicroFuse: check you mail Sorry that url is not in our system. That's wat i got Modified It's working, Tnks |
Programming › Re: Programming Videos And Books For FREE by Southboy(m): 12:00am On Sep 03, 2017 |
Send to me please. Menkachi85@yahoo.com |
Programming › Re: Learn Python- Introduction To Programming by Southboy(m): 12:44pm On Aug 29, 2017 |
stealthtiger: 4. Loops When you try to perform a task more than once, Python has the capability of handling that task. For example of you were to open about 10 files, then do some thing to them , then close. It would be easy for you to perform the task without a loop. But of you were given 100 000 files , now this would take you about 10 years to do it manually. So computers are very capable of performing a task severally and Python has that ability.
The first loop we'd be talking about is the WHILE LOOP.
We basically perform repetitions using loops. In programming context it's called ITERATION. That is to say line one does something, then it goes to line 2, line 2 them says the program shouldn't terminate then it returns to line1 again and performs that task.
So that circuit of movement is called an ITERATION.
Let's get to coding
count = 0 While count <=4: print(count) count += 1
0 1 2 3 4
Explanation of the above code To use a while loop you have to initialize a counter. We intialized our counter to 0 so our loops would start from 0. Our counter is count. The counter also acts as an accumulator. As the program makes on iteration 1 is added to count, which then stores it. On the second iteration another 1 is added to account until it makes 5 iterations. So count also gets updated after an iteration.
Beware: when using a while loop always make sure the loop terminates unless it would keep on running till it overflows the stack. This kind of loop is called an infinite loop. For example
i = 0 While i == 0: print("infinite loop. This loop would continue to run" )
This loop would run without stopping because there's no condition that terminates this program.
def sequence (n): while n != 1: print(n) if n % 2 == 0: n = n/2 else: n = n*3+1
Explanation: We created a function called sequence with a ln argument n.
Until the value n is equal to 1 before it terminates. Since we said while n is not equal to one. So if it's contrary it should stop. If the n is even it is divided by 2 if it's false it is replaced by n*3+1. If you pass 10 to the argument n the result would be: 3, 10, 5, 16, 8, 4, 2, 1. When it gets to one the loop terminates.
But there's something really interesting and fascinating about this loop. Actually there are 2 things that are interesting but the second is more. 1. This is an indefinite loop but it doesn't overflow the stack. The computation keeps on occuring until the condition is met. There's no even any obvious proof that any would reach 1. The number of iterations are unknown to us but we know it would terminate due to the expressions in the if and else statements.
2. It's impossible to prove that this program terminates for all positive values of n. No one has been able to prove this.
You can go read about the collatz conjecture.
This code was gotten from Allen Downey's think Python textbook. A recommended one for you all. I really don't understand how passing 10 to the argument will give that result. when i ran the code, it keeps printing 10. As i see it, we told it to print n while n != 1, |
Phones › Re: Phone Engineers On Nairaland Willing To Assist You - Part II by Southboy(m): 6:47pm On Aug 28, 2017 |
How much can I get the touch screen of Galaxy note 2. Thanks |
Sports › Re: Sure 1.20 - 1.70 Odds Super Singles Daily On Whatsapp Group Free!!! by Southboy(m): 6:12pm On Aug 08, 2017 |
Add me 08066264685 |
|
Investment › Re: Tangible Pay For Interested Peeps by Southboy(m): 4:17am On Aug 02, 2017 |
I don't see where to fill in my paga account number on the streetbees app. Secondly the live task keeps loading |
|
|
|
Phones › Re: Airtel 20x Recharge Bonus - Turn N100 To N2000, N200 To N4000 And More by Southboy(m): 8:47pm On May 14, 2017 |
This has been existing for more than a month. It's for people that haven't used their airtel sim for more than 30days |
|