April 7th, 2014, 05:37 PM
[Solved myself] Error from accessing function
Hello, I'm very new to this, I've watched several videos now, learned some basics, but I still lack a lot of knowledge and now I've ran into a strange problem.
When I'm trying to access "input" from a function it comes up with a hex error code, something like:
To be more precise what I'm trying to accomplish is when I invoke a function, I want to get asked to input few things and then get them processed, but it seems that I'm getting stuck on the "input" part.
<function te at 0x000000000355BB70>
Here is the code:
So when I execute a script, and write te in the interpreter, it comes up with the hex error.
name = input('Enter your name: ')
print ('Hello ', name)
I'm using the newest build that I've installed today:
My operating system: Win7, x64;
>>> print (sys.version)
3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AMD64)]
P.S. "input" outside the function works just fine.
Thanks in advance.
Okay, I'm just plain stupid, it does seem that I was not doing this properly, I should've wrote te() in the interpreter to load my function. Gosh, someone delete this shame... ; ))
Last edited by h3xus; April 7th, 2014 at 05:48 PM.
Reason: My bad
April 7th, 2014, 08:50 PM
The number written in hexadecimal is an address whereby python can find and execute the function.
It is, I expect, the id(te)
It's not an error.
[/code] are essential for python code and Makefiles!