Changes between Version 66 and Version 67 of ControlSystems/SoftwareTeam/IntroToPython


Ignore:
Timestamp:
Sep 4, 2017, 9:53:08 PM (8 years ago)
Author:
cdelgigante
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/IntroToPython

    v66 v67  
    274274
    275275{{{
     276#!python
    276277def isOver9000(power):
    277278   if power>9000:   # you could also express this if-then-else statement as "return power>9000"
     
    284285}}}
    285286
    286 Now your turn...  In the 'That's-a big number exercise above" make a function called inputNumber, and modify it to use a custom function rather than the while-not stuff.  Much easier to read, no?
     287Now your turn...  Modify the 'That's-a big number" exercise above, adding a custom function called called inputNumber to input one number, and use it instead of repeating the while-not stuff.  Much easier to read, no?
    287288
    288289Here's the [[ThatsaBigNumberSolution|solution]]