[Tutor] how to use
alan.gauld at freenet.co.uk
Sun Aug 6 17:31:41 CEST 2006
Are you reading a tutorial?
Most of the questions you are asking should be covered
in any standard tutorial.
> what does
> x**x) do?
Its equivalent to
ie raises x to the power x.
> 2nd) what is the key for the dictionary, i assume x is the value of
> the dictionary
> dict((x, x**x) for x in range(10))
x is the key and x**x is the value.
Author of the Learn to Program web site
More information about the Tutor