Changes between Version 34 and Version 35 of ControlSystems/SoftwareTeam/IntroToPython


Ignore:
Timestamp:
Sep 4, 2017, 6:40:00 PM (8 years ago)
Author:
cdelgigante
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/IntroToPython

    v34 v35  
    180180score!
    181181}}}
    182 Hint use range if you want to loop over a sequence of numbers.   Answer is [wiki:ProgrammingAnswerPotatoExercise here].
     182I'll give you three hints:   
     1831 You can tell a print to not end with a new line by adding an end="" to the print statement, like ''print("Im a teapot!",end="").   
     1841 An empty print statement (''print("")'' just prints a new line.
     1851 If you want to loop over a set of numbers, use range().  For example for i in range(1,10) will make i go from 1 to 10 incrementing 1 each time.
     186
     187Yeah, this is a little, harder, but I bet you can do it.  Ask a neighbor for help if you need to.   Answer is [wiki:ProgrammingAnswerPotatoExercise here].
    183188
    184189----