Can someone please explain what I'm doing wrong?
My code come's up as x not defined. What i'm trying to do is get the result of x in add1 and pass it to the doub function. I have searched and read up on this as much as possible, I know I am missing something simply so please point me in the right direction.
def main():
    value = (int)(input('Enter a number '))
    add1(value)
    doub(x)
def add1(value):
    x = value + 1
    return x
def doub (x):
    return x*2
main()
(int)(input('Enter a number '))looks too much likec.int(input('Enter a number '))is much more normal in python code.return value + 1?xonly exists as a name for an object in the scope ofadd1. You return the object, and would need to assign another name for it outside ofadd1if you ever want to talk about its value again.