Skip to content

Instantly share code, notes, and snippets.

View JoseALermaIII's full-sized avatar
💭
tinkering

Jose A Lerma III JoseALermaIII

💭
tinkering
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JoseALermaIII
JoseALermaIII / CoverPhoto.py
Last active November 8, 2018 02:43
Nifty cover photo that plays a game of heads or tails
#! python3
# -*- coding: utf-8 -*-
"""Plays a game of heads or tails.
Nifty cover photo that plays a game of heads or tails.
Attributes:
witty_message (str): A greeting to display upon startup.
name (str): User's inputted name.
playing_videogames (str): User's inputted response for whether they want to play.
@JoseALermaIII
JoseALermaIII / RPNcalc.py
Last active June 30, 2019 11:00
Reverse Polish Notation Calculator
#!/usr/bin/env python
#
# RPNcalc.py
#
# https://JoseALerma.com/posts/2017/Aug/15/rpn-calculator/
# Our task is to create an RPN Calculator function in Python assuming all
# numbers are single digits, the input will already be in RPN, and a First In
# Last Out stack is used. Bonus if you can make a function to convert infix
# notation (including parenthesis) to RPN (expect to be assigned this next time).
#