Skip to content

Instantly share code, notes, and snippets.

View abdulateef's full-sized avatar

Abdulateef abdulateef

  • sekat technologies
  • Lagos Nigeria
View GitHub Profile
@abdulateef
abdulateef / power.py
Created September 12, 2017 11:34
Write a function named power that accepts two arguments, a and b and calculates a raised to the power b.
def power(a,b):
if b == 0:
return 1
else:
return eval(((str(a)+"*")*b)[:-1])
def longest(words):
tokens = words.split()
max_length = 0
max_word=""
for token in tokens:
if len(token)> max_length:
max_length = len(token)
max_word = token
return max_word
public class BankPaymentService_AntiSrp
{
public BankPaymentService_AntiSrp()
{
}
public void Transfer()
{
GetBalance();
AccountLookUp();
public class TransactionManager_AntiOcp
{
public TransactionManager()
{
}
public void Payment(string paymentMethod)
{
if(paymentMethod == "inbound")