Changes between Initial Version and Version 1 of ThatsaBigNumberSolution


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

--

Legend:

Unmodified
Added
Removed
Modified
  • ThatsaBigNumberSolution

    v1 v1  
     1Back to: [wiki:SoftwareOverview Programming]
     2----
     3= That's-a Big Number Custom Function solution =
     4
     5== Solution ==
     6{{{
     7#!python
     8count=1
     9while (count<=7):
     10   if (count==4):
     11      print("more!")
     12   else:
     13      print(count, end="")
     14      for r in range(0,count):
     15         print(" potato,", end="")
     16      print("")
     17   count+=1
     18print("score!")
     19}}}
     20
     21== Output ==
     22{{{
     231 potato,                                                                                                                                                                                                                                             
     242 potato, 2 potato,                                                                                                                                                                                                                                   
     253 potato, 3 potato, 3 potato,                                                                                                                                                                                                                         
     26more!                                                                                                                                                                                                                                                 
     275 potato, 5 potato, 5 potato, 5 potato, 5 potato,                                                                                                                                                                                                     
     286 potato, 6 potato, 6 potato, 6 potato, 6 potato, 6 potato,                                                                                                                                                                                           
     297 potato, 7 potato, 7 potato, 7 potato, 7 potato, 7 potato, 7 potato,                                                                                                                                                                                 
     30score! 
     31}}}