Changes between Version 3 and Version 4 of ProgrammingAnswerPotatoExercise


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

--

Legend:

Unmodified
Added
Removed
Modified
  • ProgrammingAnswerPotatoExercise

    v3 v4  
    55count=1
    66while (count<=7):
    7    if (count==4):
    8       print("more!")
    9    else: 
    10       for r in range(0,count):
    11          print(count, "potato, ", end="")
    12       print("")
    13    count+=1
     7   if (count==4):
     8      print("more!")
     9   else:
     10      print(count, end="")
     11      for r in range(0,count):
     12         print(" potato,", end="")
     13      print("")
     14   count+=1
    1415print("score!")
    1516}}}