enter text: enter text: - - enter text:spam bad!bad!bad!bad!bad!bad!bad!badenter text:stop bye python' eval callwhich we used in and to convert data in strings and fileswould work in place of float here tooand would allow input of arbitrary expressions (" * would be legalif curiousinputespecially if we're assuming the program is processing ages!this is powerful concept that is open to the same security issues mentioned in the prior if you can' trust the source of code stringuse more restrictive conversion tools like int and float python' execused in to run code read from fileis similar to eval (but assumes the string is statement instead of an expression and has no result)and its compile call precompiles frequently used code strings to bytecode objects for speed run help on any of these for more detailsas mentionedexec is statement in but function in xso see its manual entry in instead we'll also use exec to import modules by name string in --an example of its more dynamic roles nesting code three levels deep let' look at one last mutation of our code nesting can take us even further if we need it to--we couldfor exampleextend our prior integer-only script to branch to one of set of alternatives based on the relative magnitude of valid inputwhile truereply input('enter text:'if reply ='stop'break elif not reply isdigit()print('bad! elsenum int(replyif num print('low'elseprint(num * print('bye'this version adds an if statement nested in the else clause of another if statementwhich is in turn nested in the while loop when code is conditional or repeated like quick exampleinteractive loops