Aminur Rahman Ashik
Aminur Rahman Ashik

Reputation: 90

What does -n refer for this line of code?

%%timeit -n 10

I've understood that:
10 : operation for 10 loops.
%%timeit : cellular magic function to calculate time of execution.

When I tried to change it using something (e.g. -f), then the output is:

UsageError: option -f not recognized ( allowed: "n:r:tcp:qo" )

Means, we can use n,r,tcp or qo instead of n.

So, I want to know about the reason to use -n or about the other usable alternatives.

Upvotes: 1

Views: 122

Answers (1)

as especified in the doc here the n parameter refers to :

how many times to execute ‘statement’

another parameters are:

enter image description here

When I tried to change it using something (e.g. -f), then the output is:

as you can see, there is no paramter f

Upvotes: 1

Related Questions