<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20911">
<style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst,
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle,
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;"><div>Hi Everyone:</div><div><br></div><div>When the user enters a series of number integers, the output reads: ‘Maximum is None and the ‘Minimum is None’</div><div><br></div><div>What is the source of the syntax Error, below:</div><div><br></div><div>largest = None<br>smallest = None<br>while True:<br> num = raw_input("Enter a number: ")<br> if (num == "done") : break<br> try: <br> value = float(num)<br> except ValueError:<br> print "Invalid input"<br> continue<br> if smallest is None:<br> smallest = value<br> elif value < smallest:<br> smallest = value<br> print smallest, value<br> if largest is None:<br> largest = value<br> elif value > largest:<br> largest = value<br> print largest, largest<br>print "Maximum is", largest<br>print "Minimum is", smallest<br></div><div data-signatureblock="true"><div><br></div><div><br></div><div><br></div><div>Regards,</div><div>Hal<br></div><div>Sent from Surface</div><div><br></div></div></div>
</body>
</html>