Codes for quilting: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with " <b>loops</b> for x in range(10): print ("hello python") print (x) x = 1 while x<10: print (f"x is {x}") x = x + 1 <b>.random</b> import random dir (random)...")
 
No edit summary
Line 11: Line 11:


<b>.random</b>
<b>.random</b>
import random
dir (random)
random.randint
from random import choice
from random import choice
random.choice

Revision as of 17:33, 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