lehrkraefte:sbtsnr:python:logic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lehrkraefte:sbtsnr:python:logic [2022/10/19 17:05]
Olaf Schnürer
lehrkraefte:sbtsnr:python:logic [2022/11/04 18:21] (current)
Olaf Schnürer [... und nun noch etwas rumgesponnen ...]
Line 153: Line 153:
 </code> </code>
  
-====== Funktion Erhoehen war falsch ======+====== Funktion Erhoehen oben korrigiert ======
  
 <code python wahrheitstabelle-step3-verbessert.py> <code python wahrheitstabelle-step3-verbessert.py>
Line 237: Line 237:
     print(binearMitAbstand + " " + vertikal + f"{binaer.count('1') == anzahlVariablen:>{leerzeichen}}" + f"{binaer.count('1') > 0:>{leerzeichen}}" + f"{binaer.count('1') % 2 == 1:>{leerzeichen}}"        print(binearMitAbstand + " " + vertikal + f"{binaer.count('1') == anzahlVariablen:>{leerzeichen}}" + f"{binaer.count('1') > 0:>{leerzeichen}}" + f"{binaer.count('1') % 2 == 1:>{leerzeichen}}"   
 </code> </code>
 +
 +
 +====== Turtle-Test ======
 +
 +<code python>
 +from turtle import *
 +speed(0)
 +shape("turtle")
 +
 +n = 11
 +s = 230
 +
 +pencolor("red")
 +pensize(4)
 +fillcolor("yellow")
 +
 +a = 300
 +penup()
 +goto(0.7*a, 0.5*a)
 +pendown()
 +setheading(90)
 +pendown()
 +
 +begin_fill()
 +for i in range(n):
 +    forward(s)
 +    left(180 - 180/n)
 +end_fill()
 +
 +</code>
 +
  • lehrkraefte/sbtsnr/python/logic.1666191959.txt.gz
  • Last modified: 2022/10/19 17:05
  • by Olaf Schnürer