' '{ }format( (' '' 'round for display (as we saw earlierthe last of these produces strings that we would usually print and supports variety of formatting options as also described earlierthe second-to-last test here will also output ( prior to and if we wrap it in print call to request more user-friendly display string formatting is still subtly differentthougheven in xround rounds and drops decimal digits but still produces floating-point number in memorywhereas string formatting produces stringnot number( )round( )(' ( )( ' 'interestinglythere are three ways to compute square roots in pythonusing module functionan expressionor built-in function (if you're interested in performancewe will revisit these in an exercise and its solution at the end of part ivto see which runs quicker)import math math sqrt( * pow( math sqrt( * pow( module expression built-in larger numbers notice that standard library modules such as math must be importedbut built-in functions such as abs and round are always available without imports in other wordsmodules are external componentsbut built-in functions live in an implied namespace that python automatically searches to find names used in your program this namespace simply corresponds to the standard library module called builtins in python (and __builtin__ in xthere is much more about name resolution in the function and module parts of this bookfor nowwhen you hear "module,think "import the standard library random module must be imported as well this module provides an array of toolsfor tasks such as picking random floating-point number between and and selecting random integer between two numbersimport random random random( random random( numeric types random floatsintegerschoicesshuffles