aboutsummaryrefslogtreecommitdiff
path: root/pythonProgram/function-specific-programs/drunk.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2019-05-26 18:17:49 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2019-05-26 18:17:49 +0530
commite5d413994cb23564abc9c42bf0ce2cc762222a6c (patch)
treeb4cf9c4e4347c5d7c976087db81864f76fda75fe /pythonProgram/function-specific-programs/drunk.py
parent09a166342f3e022dc241551b06f7460e974f2117 (diff)
Created python folder
Diffstat (limited to 'pythonProgram/function-specific-programs/drunk.py')
-rw-r--r--pythonProgram/function-specific-programs/drunk.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/pythonProgram/function-specific-programs/drunk.py b/pythonProgram/function-specific-programs/drunk.py
new file mode 100644
index 0000000..7e4d94d
--- /dev/null
+++ b/pythonProgram/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!")
+