diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2019-05-11 21:38:22 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2019-05-11 21:38:22 +0530 |
commit | 6cbd67bb7232e2ed499a1b94b51d255cbaea0183 (patch) | |
tree | 12dc138f9a9cc7607e146138a08db778dcc1e98c /function-specific-programs/drunk.py | |
parent | 395ea589cc10973ceae07768e7c6484534d17c8d (diff) |
Initial Commit
Diffstat (limited to 'function-specific-programs/drunk.py')
-rw-r--r-- | function-specific-programs/drunk.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/function-specific-programs/drunk.py b/function-specific-programs/drunk.py new file mode 100644 index 0000000..7e4d94d --- /dev/null +++ b/function-specific-programs/drunk.py @@ -0,0 +1,25 @@ +from uber_rides.session import Session +from uber_rides.client import UberRidesClient + + +session = Session(server_token=<TOKEN>) +client = UberRidesClient(session) + + +print("Your Location Appears to be around places which sells \n alcohol, please taka the breathalyser test ") + +bac = 0.02 + +if(bac >= 0.08): + print("Please Do Not Drive!\n") + print("I can call a cab if you want\n") + print("Say No, to disagree, else I'll book the cab") + input = yes + if(input==no): + print("You are not fit to drive") + print("Text message to emergency contact sent") + break + print("Your cab has been booked, thank you for not driving") + break +print("have a safe journey!") + |