Codes for quilting: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 1: Line 1:


<b>loops</b>
<b>loops</b><br/>
for x in range(10):
for x in range(10):
     print ("hello python")
     print ("hello python")
Line 10: Line 10:
     x = x + 1
     x = x + 1


<b>.random</b>
<b>.random</b><br/>
from random import choice
from random import choice

Revision as of 16:34, 15 October 2020

loops
for x in range(10):

   print ("hello python")
   print (x)

x = 1 while x<10:

   print (f"x is {x}")
   x = x + 1

.random
from random import choice