Professional Documents
Culture Documents
Coding Py
Coding Py
Coding Py
len()
for _ in range()
square()
sub()
add()
int()
float()
str()
type()
for()
input()
TURTLE module
import turtle
wn = turtle.Screen()
wn.bgcolor("lightgreen")
said = turtle.Turtle()
said.color("")
said.shape("turtle,arrow,blank,circle,classic,triangle")
dist = 5
said.up()
for _ in range():
said.stamp()
said.forward(dist)
said.right()
dist =
wn.exitonclick()
RANDOM module
import random
prob = random.random()
diceThrow = random.randrange()
list = []
tuple =()
name.split()
name.join()
slice operator
[n:m]
count = 0
for w in nums:
count = count + 1
print(count)
fruits = []
for n in range(.):
print(n, fruits[n])
fruits = []
for n in range(len(fruits)):
print(n, fruits[n])