Guest User

Untitled

a guest
Jun 13th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. # a) Add parentheses to the following expression so that it evaluates to 1.
  2. print((5 - 3) // 2) # 加入小括號讓運算為 1
  3.  
  4. # b) Add parentheses to the following expression so that it evaluates to 0.
  5. print(8 - 3 * 2 - (1 + 1)) # 加入小括號讓運算為 0
Add Comment
Please, Sign In to add comment