HLG Digitale Grundbildung - M3 Programmierung - kaser.cc/ph/

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


MS-Teams Link

Abgaben

Download

Grundlagen I

Info auf PH-Online

Termine

Tools

Code.org - Express Course (2025)

Scratch

JWINF

Unterrichtsmaterialien PH NÖ

Mögliche Alternativen (werden aber im Kurs nicht behandelt)

MIT App Inventor

Karol Online

Micro:bit

Grundlagen II

Termine


Easylang

Diese Links dürfen uneingeschränkt verwendet werden!

Easylang auf eduvidual.at


Python

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)


Mögliche Alternativen

AHS Informatik

p5.js

Code Guppy- p5.js

Python Programming MOOC 2023

Learn Python

Online Python

Python W3Schools

Learn JavaScript

JavaScript W3Schools

Online IDE - JS, TypeScript

CSharp Tutorial

Minecraft Education Edition (Block, Python)

Roblox Scripting Tutorial (Lua)

Kontakt

Diverses

Curriculum