<html><head></head><body><div class="ydpb6ce61beyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><div dir="ltr" data-setdir="false">Thanks Ian and Colin,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I did get an unexpected result in that it won't handle decimals but that's part of the learning process. I'm guessing that it's checking for numbers only and that there might be an isdecimal. I'll have to look later. It's 5:30am and I have to rush off to work.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div>runfile('/home/rhys/Documents/Python/sexy.py', wdir='/home/rhys/Documents/Python')</div><div>0.3 x 0.8 = 0.24</div><div><br></div><div>Gimme Number 1 c</div><div><br></div><div>Gimme Number 2 c</div><div>Retard - I asked for numbers</div><div>False</div><div>False</div><div>end</div><div><br></div><div>runfile('/home/rhys/Documents/Python/sexy.py', wdir='/home/rhys/Documents/Python')</div><div>0.3 x 0.8 = 0.24</div><div><br></div><div>Gimme Number 1 6.6</div><div><br></div><div>Gimme Number 2 6</div><div>Retard - I asked for numbers</div><div>False</div><div>True</div><div>end</div><div><br></div><div>runfile('/home/rhys/Documents/Python/sexy.py', wdir='/home/rhys/Documents/Python')</div><div>0.3 x 0.8 = 0.24</div><div><br></div><div>Gimme Number 1 7</div><div><br></div><div>Gimme Number 2 6</div><div>and the aardvaark says 42.0</div><div>end</div><div><br></div></div><div><div>#!/usr/bin/env python3</div><div># -*- coding: utf-8 -*-</div><div>"""</div><div>Created on Mon Sep 27 16:52:01 2021</div><div><br></div><div>@author: Rhys</div><div>"""</div><div>#Declare variables</div><div>NumberOne = 0.3</div><div>NumberTwo = 0.8</div><div>NumberThree = 0</div><div><br></div><div>#subroutines</div><div><br></div><div>#actual code</div><div>NumberThree = NumberOne*NumberTwo</div><div>print ("0.3 x 0.8 = ", NumberThree)</div><div>NumberOne = input("Gimme Number 1 ")</div><div>NumberTwo = input("Gimme Number 2 ")</div><div><br></div><div>#if ((NumberOne.isnumeric != False) and (NumberTwo.isnumeric != False)):</div><div>if not (NumberOne.isnumeric() and NumberTwo.isnumeric()):</div><div> print("Retard - I asked for numbers")</div><div> print (NumberOne.isnumeric())</div><div> print (NumberTwo.isnumeric())</div><div>else:</div><div> NumberOne = float(NumberOne)</div><div> NumberTwo = float(NumberTwo) </div><div> NumberThree = NumberOne * NumberTwo</div><div> print ("and the aardvaark says ", NumberThree)</div><div>print ("end")</div></div><br></div><div><br></div><div class="ydpb6ce61besignature">Rhys Sage</div></div></div></body></html>