amount=13
if amount<1000:
discount = amount*0.05
print ("Discount",discount)
elif amount==1000:
print ("Net payable:",amount-discount)
else:
discount = amount*0.15
print ("Discount",discount)
easy_install --upgrade setuptools
pip install email
easy_install email
import smtplib
gmail_user = 'ambiorixg13'
gmail_password = '111112231'
sent_from = gmail_user
to = ['me@gmail.com', 'ambiorixg12@gmail.com']
subject = 'OMG Super Important Message'
body = ('Hey, what')
email_text = """\
From: %s
To: %s
Subject: testing %s
%s
""" % (sent_from, ", ".join(to), subject, body)
try:
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
server.ehlo()
server.login(gmail_user, gmail_password)
server.sendmail(sent_from, to, email_text)
server.close()
print ('Email sent!')
except:
print ('Something went wrong...')
amixer cset numid=3 2
2, which is HDMI. Setting the output to 1switches to analogue (headphone jack). The default setting is 0 which is automatic.sudo raspi-config

Advanced Options and press Enter, then select Option A6: Audio and press Enter:
Auto option. Select a mode, press Enter and press the right arrow key to exit the options list, then select Finish to exit the configuration tool.config.txt to force HDMI mode (as opposed to DVI mode, which does not send sound). You can do this by editing /boot/config.txt and setting hdmi_drive=2, then rebooting for the change to take effect.