This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def power(a,b): | |
| if b == 0: | |
| return 1 | |
| else: | |
| return eval(((str(a)+"*")*b)[:-1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class BankPaymentService_AntiSrp | |
| { | |
| public BankPaymentService_AntiSrp() | |
| { | |
| } | |
| public void Transfer() | |
| { | |
| GetBalance(); | |
| AccountLookUp(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TransactionManager_AntiOcp | |
| { | |
| public TransactionManager() | |
| { | |
| } | |
| public void Payment(string paymentMethod) | |
| { | |
| if(paymentMethod == "inbound") |
OlderNewer