<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(69, 69, 69); ">"def spam(n=3):</span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(69, 69, 69); ">&nbsp; &nbsp; """Return n slices of yummy spam."""<br>&nbsp; &nbsp; return "spam "*n<br><br>And here it is in use:<br><br>&gt;&gt;&gt; spam(4)<br>'spam spam spam spam '<br>&gt;&gt;&gt; spam()&nbsp; # just use the default<br>'spam spam spam '<br><br>Can you see what I did to set the default value for n? Read the function definition line "def spam... " carefully.</span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(69, 69, 69); "><br>-- Steven</span><span class="Apple-style-span"
 style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(69, 69, 69); ">"</span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(69, 69, 69); "><br></span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(69, 69, 69); ">This is my new code for a default step value based on your feedback Steve:</span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(69, 69, 69); "><br></span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(69, 69, 69); "><div>def ask_number(question, low, high, step):</div><div>&nbsp;&nbsp; &nbsp;"""Ask for a number within a range."""</div><div>&nbsp;&nbsp; &nbsp;response = None</div><div>&nbsp;&nbsp; &nbsp;if step ==
 None:</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;step = 1</div><div>&nbsp;&nbsp; &nbsp;while response not in range(low, high, step):</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;response = int(input(question))</div><div>&nbsp;&nbsp; &nbsp;return response</div></span></div><div><font class="Apple-style-span" color="#454545" face="Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px; "><br></span></font></div></div></body></html>