Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help please
#1
Hi all, I'm creating a program that does calculations for converting alertpay to paypal and stuff, but I'm having an error that I can't seem to fix. It wasn't working on 2.7 so now I'm on 2.6 and it still doesn't work -__-

Code:
#!/usr/bin/python
import time
initial = raw_input('Enter exchange amount here: ')
exchangefrom = raw_input('Is the exchange starting from alertpay or paypal?: ')
exchangeto = raw_input('Is the exchange to alertpay or paypal?: ')

if initial < 10:
    print 'No exchanges allowed under $10'
    time.sleep(100)
    
else initial > 150:
    a=initial-initial*.025 - .25
    b=a-.5
    c=b-initial*.065
    d=c-c*.029-.3
    print(d)
    time.sleep(100)

It says my syntax error is the first initial after else.
Reply


Messages In This Thread
Help please - by Nemmyy - 08-16-2010, 06:17 PM
RE: Help please - by Daniel Faraday - 08-16-2010, 07:03 PM
RE: Help please - by Nemmyy - 08-16-2010, 07:14 PM
RE: Help please - by Daniel Faraday - 08-16-2010, 07:16 PM
RE: Help please - by Nemmyy - 08-16-2010, 07:26 PM
RE: Help please - by Daniel Faraday - 08-16-2010, 07:27 PM
RE: Help please - by Nemmyy - 08-16-2010, 07:41 PM
RE: Help please - by Daniel Faraday - 08-16-2010, 07:54 PM
RE: Help please - by Nemmyy - 08-16-2010, 07:59 PM
RE: Help please - by Daniel Faraday - 08-16-2010, 08:25 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)