12 lines
188 B
Python
12 lines
188 B
Python
#!/usr/bin/python
|
|
|
|
def getBool(var):
|
|
try:
|
|
if var == "oui":
|
|
return 1
|
|
else:
|
|
return 0
|
|
|
|
except:
|
|
return "error fonction getBool"
|