I have just started learning Python. The problem I am facing is: whenever I use raw_input() outside a function it works fine, but whenever I use raw_input function inside a function like this it gives me an error.
def getinput(cost):
cost=raw_input('Enter a number ')
it gives me an Indentation error