I've just started learning Python. I have a little bit of experience with perl, and coming to terms with a language that seems to rely on indentations, and no termination characters.
I started small with code in Google python course:
import sys
def repeat(s, exclaim):
result=s*3
if exclaim:
result=result+'!!!'
return result
def main():
print repeat('Yay', true)
if __name__=='__main__':
main()
Error:
C:\python>py repeat.py
File "repeat.py", line 8
print repeat('Yay', true)
^
SyntaxError: invalid syntax
Could anyone help me by telling me what's wrong with the code?