In Easylang hat sich die Funktion random geändert. Der Startwert des Bereiches muss nun
auch angegeben werden. Dadurch ändern sich auch die Programme 6er-Zählen und Roulette.
while n < 100
w = random 1 6
if w = 6
anz += 1
end
n += 1
end
print "Bei 100 mal Würfeln waren " & anz & " Sechser dabei"
while n < 10000
cash -= 10
numb = random 0 36
if numb >= 19
cash += 20
end
n += 1
end
print "Cash after playing: $" & cash
27.09.25 12:00-14:30 Online
11.10.25 12:00-14:30 ONLINE!!
8.11.25 12:00-14:30 HTL-Leonding
13.12.25 12:00-14:30 HTL-Leonding
10.1.26 12:00-14:30 Online
Code.org - Express Course (2025)
21.03.26 11:45-14:15 HTL-Leonding
11.04.26 11:45-14:15 Online
25.04.26 11:45-14:15 HTL-Leonding
09.05.26 11:45-14:15 Online
13.06.26 11:45-14:15 Online
Diese Links dürfen uneingeschränkt verwendet werden!
Programm das bis 10 zählt:
i = 1
while i <= 10:
print(i)
i += 1
Grafikfunktionen
from gpanel import *
makeGPanel(0, 100, 0, 100)
line(10, 20, 30, 20)
line(30, 20, 30, 40)
from gpanel import *
makeGPanel(0, 100, 0, 100)
setColor("turquoise")
pos(0, 0)
fillRectangle(100, 100)
setColor("black")
y = 5
while y < 100:
x = 5
while x < 100:
pos(x, y)
fillCircle(2.5)
delay(10)
x += 10
y += 10
Verschiedene Funktionen
import random
wurf = random.randint(1, 6)
print(wurf)
Minecraft Education Edition (Block, Python)
Roblox Scripting Tutorial (Lua)
c.kaser(at)htl-leonding.ac.at
christof.kaser(at)gmail.com
kaser.cc/ph