for dwarf in
["Grumpy",
"Sneezy",
"Sleepy",
"Doc",
"Bashful",
"Dopy",
"Happy"]:
print dwarf
Schleifen
bottles=99
while bottles>0:
print bottles,
"bottles of beer on the wall"
print bottles,
"bottles of beer"
print
"take and down and pass it around"
bottles=bottles-1
print bottles,
"bottles of beer"
print "No more beer"
Bedingungen
if 42.0/7.0==5.99999:
print
"We are Pentium of Borg. Division is futile. You will be approximated."
else:
print
"Your arithmetics is ok"