08-16-2010, 06:17 PM
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 -__-
It says my syntax error is the first initial after else.
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.