Advertisement
swaggboi

Untitled

May 3rd, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. daniel@stinkpad-02:~$ cat bin/milk.py
  2. #!/usr/bin/env python3
  3.  
  4. from datetime import date
  5.  
  6. if date.today().year >= 2020 :
  7.     print("error: this milk is expired!!")
  8.     exit(64)
  9. else :
  10.     print("milk is good.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement