BuK/IIm20/Vorlesung 3 Merkelt

Aus ProgrammingWiki

Wiki-Quelltext dieser Seite.

<language>Python</language>
<language>Python</language>
== Folie 9 ==
'''Beispiel 1'''
<code id="606ef64b45bca">
def chi_M(w):
    return len(w) == 3
</code>
<run id="606ef64b45ca4">
print(chi_M("aaa"))
print(chi_M("ab"))
print(chi_M("aba"))
</run>
'''Beispiel 2'''
<code id="606ef64b45c38">
def chi_M(w):
    return w.startswith("a")
</code>
<run id="606ef64b45d03">
print(chi_M("aaa"))
print(chi_M("babababaaab"))
print(chi_M(""))
</run>

== Folie 10 ==

== Folie 15 ==

== Folie 16 ==

== Folie 20 ==

== Folie 23 ==