<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hello, <BR>
&nbsp;<BR>
I have this exercise :<BR>
&nbsp;<BR>
<P class=first>Try each of the following formatted string operations in a Python shell and record the results:</P>
<OL class="arabic simple">
<LI>“%s %d %f” % (5, 5, 5)</LI>
<LI>“%-.2f” % 3</LI>
<LI>“%-10.2f%-10.2f” % (7, 1.0/2)</LI>
<LI>print ” $%5.2fn $%5.2fn $%5.2f” % (3, 4.5, 11.2)</LI></OL>
&nbsp;<BR>
But if I try in a python 2.7 IDLE enviroment I get this :<BR>
&nbsp;<BR>
&gt;&gt;&gt; %s %d %f % (5, 5, 5)<BR>SyntaxError: invalid syntax<BR>&gt;&gt;&gt; print “%s %d %f” % (5, 5, 5)<BR>SyntaxError: invalid syntax<BR>
&nbsp;<BR>
Roelof<BR>
&nbsp;<BR>                                               </body>
</html>