Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def getter fahrenheit:
  2. return celsius * 9 / 5 + 32;
  3.  
  4. class temperature:
  5. variable state
  6.  
  7. def init:
  8. state = 1
  9.  
  10. def getter fahrenheit:
  11. if state == 1:
  12. state = 0
  13. return -42
  14. return celsius * 9 / 5 + 32;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement