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)
Funkyswagzz:Ozo all the way 09014036025 |
zickko10:Suberu Oje Alagbado, Lagos state |
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 |
Franciscoco:please i need a laptop for programming God will continue blessing you |
They are here again |
If all Nigeria girls can think like this woman, this country problem is solved. |
all the posters above me are dumb. if you can't give her a piece of advice then ignore it. |
LA click LA bend ![]() |
La click La thunder ![]() |
Weldon aunty surulere |
espn:You no go kill person with laughter ![]() |
La click La thunder |
GuyWise101: Baba bless me with the raba ![]() Ojo Olamide Tomiwa 1 2 2 1 9 8 6 8 3 4 Access Bank |
Omo see brother |
If u no fit wise for Lagos, you no fit wise for anywhere. |
am i the only one that find this boring. |
following |
Another looter born |
crownedrookie brukx def main(): # Prompt the user to enter a hex number hex = input("Enter a hex number: " .strip()decimal = hexToDecimal(hex.upper()) if decimal == None: print("Incorrect hex number" ![]() 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
|
Brukx:I've done it |
Taofeekdboy:Okay I'll do it later in the evening. I've headache now from modularizing codes to this one. |
Taofeekdboy:I will try that |
Hope Millenniumlady is seeing this. |
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 = " " :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)


.strip()