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
stock = raw_input("What is the stock name? ") | |
buy_price = raw_input("What did you buy the stock at? ") | |
current_price = raw_input("What is the stock's current price? ") | |
stock_number = raw_input("How many stocks did you buy? ") | |
tax = raw_input("Did you buy this stock over a year ago? ") | |
change = float(current_price) - float(buy_price) | |
profit_before_tax = float(change) * float(stock_number) | |
if tax.upper() == 'NO' or tax.upper() == 'N': |
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
import smtplib | |
username = 'gmail_username' | |
password = 'gmail_password' | |
fromaddr = 'gmail_username@gmail.com' | |
toaddrs = '10digit_phone_number@txt.att.net' | |
msg = 'Message to be sent' | |
server = smtplib.SMTP('smtp.gmail.com:587') |