Skip to content

Instantly share code, notes, and snippets.

View Prosoffice's full-sized avatar
🏠
Working from home

Prosper Ogbonnaya Prosoffice

🏠
Working from home
  • Stoke, England
View GitHub Profile
$ git remote rm origin
$ git remote add origin [email protected]:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
https://wallet-p.herokuapp.com/register
Method: POST
# DATA SCHEMA EXAMPLE
{
"first_name": "Prosper",
"last_name": "Test",
"email": "[email protected]",
"password": "testpass",
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
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()