problem with returning a function/decorator
sorry I am a little bit new to python and I have a problem here. at the same time I want to return my list(listt) not print and print it outside the functions before the execution time being returned. I can not kind of figure out how the decorator works and also how to print listt outside the function as I don't want the time of printing be calculated and listt is now local. another thing is I feel like the time for small numbers should be below 1 second but now it returns more than that. Could you please help me fix this problem? I am sorry for this noobish question def measure_time(func): de
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.