₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,237 members, 8,420,920 topics. Date: Friday, 05 June 2026 at 02:11 PM

Toggle theme

AroogzBaba's Posts

Nairaland ForumAroogzBaba's ProfileAroogzBaba's Posts

1 (of 1 pages)

TravelRe: General South Africa Visa Enquiries by AroogzBaba: 6:04pm On Feb 22, 2017
You do not need the SAQA for your Postgraduate application to UCT. However, I would say it doesn't hurt to have it done as I guess it should come in handy in the long-term.
Adewole17:
Hi Larrywax, My SAQa status online now says 'Complete'. Pls how long can it take to get it? Also do i need it for visa, cos one friend of mine dere said i do not need it that i should go apply for Visa ASap. Thanks for your help.
TravelRe: General South Africa Visa Enquiries by AroogzBaba: 8:29pm On Jan 15, 2017
Hello everyone,
Anyone resuming at UCT this Jan/Feb?
Jobs/VacanciesRe: Andela: IT Training And Job by AroogzBaba: 4:31pm On Sep 20, 2016
#Please I need help with this. The code passes all the visible test but fails hidden test
#Thanks

class BankAccount:

def withdraw():
pass

def deposit():
pass

class SavingsAccount(BankAccount):

def __init__(self):
#if self.balance != 500:
#raise ValueError()
self.balance = 500

@property
def balance(self):
return self.__balance

@balance.setter
def balance(self, amount):
if type(amount) == int or type(amount) == float:
if amount >= 500:
self.__balance = amount
else:
return
else:
raise ValueError()


def deposit(self, amount):
if type(amount) == int or type(amount) == float:
if amount < 0:
return "Invalid deposit amount"
self.balance += amount
return self.balance
else:
raise ValueError()

def withdraw(self, amount):
if type(amount) == int or type(amount) == float:

if amount < 0:
return "Invalid withdraw amount"
elif amount > self.balance:
return "Cannot withdraw beyond the current account balance"
elif (self.balance - amount) < 500:
return "Cannot withdraw beyond the minimum account balance"
self.balance -= amount
return self.balance
else:
raise ValueError()

class CurrentAccount(BankAccount):
def __init__(self):
self.balance = 0

@property
def balance(self):
return self._balance

@balance.setter
def balance(self, amount):
if type(amount) == int or type(amount) == float:
if amount >= 0:
self._balance = amount
else:
return
else:
raise ValueError()

def deposit(self, amount):
if type(amount) == int or type(amount) == float:

if amount < 0:
return "Invalid deposit amount."
self.balance += amount
return self.balance
else:
raise ValueError()
def withdraw(self, amount):
if type(amount) == int or type(amount) == float:

if amount < 0:
return "Invalid withdraw amount"
elif self.balance < amount:
return "Cannot withdraw beyond the current account balance"
else:
self.balance -= amount
return self.balance
else:
raise ValueError()

1 (of 1 pages)