for1
for - Schleife
- for1.py
#for1.py
#range(stop) range(start, stop) range(start, stop, step)
for zaehler in range(1,11):
print zaehler
- for2.py
for zaehler in range(10,-1,-1):
print zaehler
- for3.py
for zaehler in range(0,20,2):
print zaehler
- for4.py
from turtle import *
reset()
for zaehler in range(6):
forward(100)
left(60)
exitonclick()
- for5.py
from turtle import *
reset()
for zaehler in range(11):
forward(100)
left(360.0/11.0)
exitonclick()
for1.txt · Zuletzt geändert: 2021/02/10 16:05 von admin