### Ronde 3 --- ### Vorige Keer * fibonaci ```python nterms = int(input("Hoe veel ronded ? ")) # first two terms n1, n2 = 0, 1 count = 0 # controleer of de nummer goed is if nterms <= 0: print("dit is geen integer") elif nterms == 1: print("Fibonacci sequence tot",nterms,":") print(n1) else: print("Fibonacci sequence:") while count < nterms: print(n1) nth = n1 + n2 n1 = n2 n2 = nth count += 1 ``` --- ### datatypes * <p class="fragment">float</p> * <p class="fragment">str</p> * <p class="fragment">bool</p> ### deze doen we niet <p class="fragment">complex</p> <p class="fragment">bytes</p> <p class="fragment">bytearray</p> --- ### Ik ben wat vergeten..... *Operations en Boolean* --- ### Boolean Value In programming you often need to know if an expression is True or False. --- ### Operations --- ### strictly less than ```python3 < ``` --- ### less than or equal ```python3 <= ``` --- ### strictly greater than ```python3 > ``` --- ### greater than or equal ```python3 >= ``` --- ### equal ```python3 == ``` --- ### not equal ``` python3 != ``` --- ### object identity ```python3 is ``` --- ### negated object identity ```python3 is not ``` --- ### Opdracht Maak een rekenmachine met input en error handeling