Function returns memory address - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Function returns memory address (/thread-15997.html) |
Function returns memory address - Joeicam - Feb-10-2019 I'm really new to Python and am going through a training course :). The course is walking us through basic functionality. I'm using Python 3.7.2 on a Mac. Here's the code I'm using and the result. It doesn't appear to be an error, just not the result I was looking for. >>> def age(): user_age = input("Enter: ") print("you are {}".format(user_age)) Thanks!Whoops, beginner mistake. Forgot to use the () at the end of the function name. *face palm* RE: Function returns memory address - Larz60+ - Feb-10-2019 you need to indent lines 2 & 3 |