Assignacions

Escriu la traça d’aquests trossos de programes.

  1. a = 5
    b = 13
    c = a+b
    a = a-b
    b = b-2*a+ c
    
  2. x = int(input())
    y = int(input())
    a = x > y
    b = a and x < y
    a = a or x >= y
    b = a and b
    a = a or False
    b = (a and False) or (b or a)
    
  3. a = -5.3
    b = int(a)
    b = float(b)
    a = a-b
    b = str(b)