Another question please...
I have this code :
timestamp = 1339521878
value = datetime.datetime.fromtimestamp(timestamp)
if (f == 2015):
return (0.145 * 1)
elif (f ==2012):
return (0.145 * 2)
The first section take some "timestamp" that i entered and give me back the "year" of that time stamp..
The second section is just a simple function with "elif" and "if "...
the outputs now are :
I need that the data from the "timestamp" request will go directly to my function,
It will go to : aa =Final(f) (it should be something like : aa =Final(value.strftime('%Y'))
How can i do that?