Create a variable outside of a function, and use it inside the function. x = "awesome" def myfunc(): print("Python is " + x) myfunc().
確定! 回上一頁