Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#! 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. |
This file contains 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
#!/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). | |
# |