On 01/05/16 05:20, Olaoluwa Thomas wrote:
> Thank you so much, Alan. That fixed it (See Script 2[SOLVED] below).
>
> For the purpose of record-keeping, I'm pasting the entire code of all
> scripts below as I should have done from the very beginning.
>
thanks :-)
> P.S. How were you able to open
Thank you so much, Alan. That fixed it (See Script 2[SOLVED] below).
For the purpose of record-keeping, I'm pasting the entire code of all
scripts below as I should have done from the very beginning.
P.S. How were you able to open attachments with the restrictions on this
mailing list?
Script 1
On 01/05/16 01:16, Alan Gauld via Tutor wrote:
> I can't see anything obviously wrong in your code
I was too busy focusing on the calculations that
I didn't check the 'if' test closely enough.
You need to convert your values from strings
before comparing them.
hours = float(raw_input ('How many
On 2016-04-30 11:30, Olaoluwa Thomas wrote:
> I would appreciate a logical explanation for why the "else" statement in
> the 2nd script isn't working properly.
>
> I'm running Python v2.7.8 on a Windows 7 Ultimate VM via Command prompt and
> my scripts are created and edited via Notepad++ v6.7.3
>
On 30/04/16 16:30, Olaoluwa Thomas wrote:
> I've attached the scripts in question (created via Notepad++).
attachments often get stripped by the mail system as a security risk.
Since your code is very short just post it in the mail message
as plain text.
> The problem with this script is that th
Hi, I'm new to Python and programming in general. I came across a simple
exercise that is used to compute gross pay when prompted to enter number of
hours and hourly rate.
I've attached the scripts in question (created via Notepad++).
The 1st script I wrote worked perfectly.
The 2nd script makes