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 palindrome_checker(string): | |
| # define a list(stack) to split the strings | |
| stack = [char for char in string] | |
| # Initiate a reverse variable to use as a comparison check | |
| reverse = "" | |
| # Pop off the last element of the stack and Incrementally append item to the reverse variable | |
| for i in range(len(stack)): | |
| reverse += stack.pop() |
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
| class Stack(): | |
| # initializing storage and count attributes for the stack | |
| def __init__(self): | |
| self.storage = {} | |
| self.count = 0 | |
| # Adds value unto the end of the stack | |
| def push(self, value): | |
| self.storage[self.count]= value |
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
| https://wallet-p.herokuapp.com/register | |
| Method: POST | |
| # DATA SCHEMA EXAMPLE | |
| { | |
| "first_name": "Prosper", | |
| "last_name": "Test", | |
| "email": "prostest@gmail.com", | |
| "password": "testpass", |
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
| $ git remote rm origin | |
| $ git remote add origin git@github.com:aplikacjainfo/proj1.git | |
| $ git config master.remote origin | |
| $ git config master.merge refs/heads/master |