₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,347,720 members, 8,528,943 topics. Date: Thursday, 03 December 2026 at 08:55 AM

Toggle theme

Olamidedivotee's Posts

Nairaland Forum › Olamidedivotee's Profile › Olamidedivotee's Posts

1 2 3 4 5 6 7 8 ... 24 25 26 27 28 29 30 31 32 (of 52 pages)

Romance › Re: I'm Shocked To See Ozo In Big Brother Naija by olamidedivotee: 5:01pm On Jul 21, 2020
Funkyswagzz:
His elder sister miriam chukwu was my class mate in secondary school and my junior that year. My school mates are really doing well oo. Please vote for Ozo #offcialozo his IG account.
Text VOTE Ozo to 32052
Ozo all the way

09014036025
Computers › Re: I Need A Laptop by olamidedivotee(op): 6:37am On Jul 21, 2020
zickko10:
Location
Suberu Oje Alagbado, Lagos state
Computers › I Need A Laptop by olamidedivotee(op): 7:17pm On Jul 20, 2020
Good evening Nairalanders, I've been learning programming on my phone, but now i need a laptop.


Please help me, if you can give me laptop, and if it is to pay on installment , I'll pay. I need it seriously.


0 9 0 1 4 0 3 6 0 2 5
Romance › Re: Laptop Giveaway by olamidedivotee: 6:57pm On Jul 20, 2020
Franciscoco:
Good morning nairalanders

If you stay in Cotonou,and you need a laptop pls signify, cause I have two laptops I want to give out and they are both in perfect condition

Lenovo 530

And

Lenovo 540

Pls signify if you want
please i need a laptop for programming


God will continue blessing you
TV/Movies › Re: Meet The Bbnaija 2020 Housemates (photos) by olamidedivotee: 9:30pm On Jul 19, 2020
They are here again
Celebrities › Re: Lady Shows Off Thousands Of Naira She Saved From Her Piggy Bank (photos) by olamidedivotee: 10:21pm On Jul 18, 2020
If all Nigeria girls can think like this woman, this country problem is solved.
Romance › Re: My Boyfriend Has Changed!!!he Did This!! by olamidedivotee: 9:30pm On Jul 17, 2020
all the posters above me are dumb.
if you can't give her a piece of advice then ignore it.
Celebrities › Re: See Lyta’s Alleged Girlfriend, Coco Brown Dazzles In New Pictures As She Turns A by olamidedivotee: 1:56pm On Jul 14, 2020
LA click LA bend undecided
Celebrities › Re: Meet The Real Life Vampire Who Drinks Blood And Says She's 600 Years Old by olamidedivotee: 1:55pm On Jul 14, 2020
La click La thunder undecided
Romance › Re: Lady Rejects Rich Men’s Proposals Because She Wants To Marry A Poor Man by olamidedivotee: 4:57pm On Jul 13, 2020
Weldon aunty surulere
Celebrities › Re: Countries With The Highest Number Of Billionaires! See Nigeria’s Position! by olamidedivotee: 8:26am On Jul 11, 2020
espn:
Nooooo Nigeria must be number one. Some of our brother claim they have over 200 billionaires from there region. Doctored list...
You no go kill person with laughter grin grin grin
Romance › Re: La Click La Bend (Uncensored) by olamidedivotee: 8:11am On Jul 11, 2020
La click La thunder
Politics › Re: Proof That Reno Omokri Steals Posts From Nairaland And Use It On Twitter by olamidedivotee: 8:03am On Jul 11, 2020
GuyWise101:
So what's so special of Reno being here?


Me wey dey comment here if I tell una who I be una go begin just dey send una account numbers cheesy
cheesy Baba bless me with the raba cheesy

Ojo Olamide Tomiwa
1 2 2 1 9 8 6 8 3 4
Access Bank
Romance › Re: Man spend 9 million for a lady(photos) by olamidedivotee: 12:51pm On Jul 10, 2020
Omo see brother
Celebrities › Re: Man Orders N230k Iphone XS Max From Computer Village, See What He Got (photos) by olamidedivotee: 8:11am On Jul 04, 2020
If u no fit wise for Lagos, you no fit wise for anywhere.
Education › Re: X-ray Pictures Of The Sun, The Moon, The Sky And Milky Way Galaxy. by olamidedivotee: 7:50am On Jul 04, 2020
undecided am i the only one that find this boring.
Phones › Re: Smartphone Memes That Will Make Your Day by olamidedivotee: 4:45pm On Jul 03, 2020
following
Politics › Re: Seyi Tinubu, Wife Name Their Son Bolatito Ayyan Tobias Jidenna Akanbi Tinubu by olamidedivotee: 3:39pm On Jul 03, 2020
Another looter born
Programming › Python Legends Please I Don't Understand This Error by olamidedivotee(op): 3:58pm On Jul 01, 2020
crownedrookie
brukx


def main():

# Prompt the user to enter a hex number

hex = input("Enter a hex number: "wink.strip()


decimal = hexToDecimal(hex.upper())

if decimal == None:

print("Incorrect hex number"wink

else:

print("The decimal value for hex number",

hex, "is", decimal)


def hexToDecimal(hex):

decimalValue = 0

for i in range(len(hex)):

ch = hex[i]

if 'A' <= ch <= 'F' or '0' <= ch <= '9':

decimalValue = decimalValue * 16 + \

hexCharToDecimal(ch)

else:

return None


return decimalValue


def hexToDecimal(ch):

if 'A' <= ch <= 'F':

return 10 + ord(ch) - ord('A')

else:

return ord(ch) - ord(ch)


main() # Call the main function

Programming › Re: Python Gurus Please Help Me With This Code. by olamidedivotee(op): 9:11pm On Jun 29, 2020
Brukx:
As you can see, only your first and last function are properly indented. That's the issue
I've done it
Programming › Re: Python Gurus Please Help Me With This Code. by olamidedivotee(op): 9:51am On Jun 29, 2020
Taofeekdboy:
Op, try also to learn how to debug as this is a powerful tool in programming, TypeError, ValidationError, ValueError, IndentationError, KeyError should be something you should be familiar with so that you can figure it out yourself and know whats wrong.
Okay

I'll do it later in the evening.
I've headache now from modularizing codes to this one.
Programming › Re: Python Gurus Please Help Me With This Code. by olamidedivotee(op): 9:35am On Jun 29, 2020
Taofeekdboy:
First, your code is too verbose, using class is an overkill for this mortgage calculator.
You can use function but it is fine if you really wanna use class but note that when defining a class, your method indentation must be accurate, like everything must be lined up together, press backspace for everything under the class and use tab key to indent them once.
I will try that
Family › Re: Nairalanders Whose Pre-Wedding Pictures Went Viral Welcome A Baby Girl by olamidedivotee: 9:33am On Jun 29, 2020
Hope Millenniumlady is seeing this.
Programming › Python Gurus Please Help Me With This Code. by olamidedivotee(op): 9:01am On Jun 29, 2020
Grandlord
brukx


Python gurus where are you, help me with this


This code have been giving me sleepless night.



class Loan:
def __init__(self, annualInterestRate = 2.5,
numberOfYears = 1, loanAmount = 1000, borrower = " "wink:
self.__annualInterestRate = annualInterestRate
self.__numberOfYears = numberOfYears
self.__loanAmount = loanAmount
self.__borrower = borrower

def getAnnualInterestRate(self):
return self.__annualInterestRate

def getNumberOfYears(self):
return self.__numberOfYears

def getLoanAmount(self):
return self.__loanAmount

def getBorrower(self):
return self.__borrower

def setAnnualInterestRate(self, annualInterestRate):
self.__annualInterestRate = annualInterestRate

def setNumberOfYears(self, numberOfYears):
self.__numberOfYears = numberOfYears

def setLoanAmount(self, loanAmount):
self.__loanAmount = loanAmount

def setBorrower(self, borrower):
self.__borrower = borrower

def getMonthlyPayment(self):
monthlyInterestRate = self.__annualInterestRate / 1200
monthlyPayment = \
self.__loanAmount * monthlyInterestRate / (1 - (1 /
(1 + monthlyInterestRate) ** (self.__numberOfYears * 12)))
return monthlyPayment

def getTotalPayment(self):
totalPayment = self.getMonthlyPayment() * \
self.__numberOfYears * 12
return totalPayment

1 2 3 4 5 6 7 8 ... 24 25 26 27 28 29 30 31 32 (of 52 pages)