# Conditional Statements

### <mark style="color:blue;">First Function:</mark><mark style="color:blue;">`drink(money)`</mark>

```python
def drink(money): 
    if money >= 2: 
        return "You've got yourself a drink!" 
    else: 
        return "No drink for you!" 

print(drink(4))    # Enough money → drink
print(drink(1))    # Not enough → no drink
```

**Explanation:**

* If money is **2 or more**, it returns a success message.
* Otherwise, it returns a rejection message.

**Output:**

<figure><img src="https://1710373693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6aHHcurOjmaXZDagV3Zm%2Fuploads%2FVJzbEhrSOCCsT3wDvZNA%2F1.png?alt=media&#x26;token=15c88bde-4710-4054-8dc1-3dab6c68ab7d" alt=""><figcaption></figcaption></figure>

***

### <mark style="color:blue;">Second Function:</mark><mark style="color:blue;">`alcohol(age, money)`</mark>

```python
def alcohol(age, money):
    if (age >= 21) and (money >= 5):
        return "We're getting a drink!"
    elif (age >= 21) and (money < 5):
        return "Come back with more money!"
    elif (age < 21) and (money >= 5):
        return "Nice try, kiddo!"
    else:
        return "You're too poor and too young!"

print(alcohol(21, 5))   # Age and money OK
print(alcohol(21, 3))   # Old enough but not enough money
print(alcohol(18, 10))  # Too young
print(alcohol(15, 3))   # Too young and poor
```

**Explanation:**

* Checks both **age** and **money** using `if`, `elif`, and `else`.
* Uses `and` to combine conditions.

**Output:**

<figure><img src="https://1710373693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6aHHcurOjmaXZDagV3Zm%2Fuploads%2FaivVC9sSeQkXPaT2ZpGd%2F2.png?alt=media&#x26;token=d505ebf5-7c6a-456f-8c0d-f61ab912521c" alt=""><figcaption></figcaption></figure>

```python
#!/bin/python3

# Conditional Statements
def drink(money):
    if money >= 2:
       return "You've got yourself a drink!"
    else:
        return "No drink for you!"
print(drink(4))
print(drink(1))



def alcohol(age,money):
	if (age >= 21) and (money >= 5):
		return "We're getting a drink!"
	elif (age >= 21) and (money < 5):
		return "Come back with more money!"
	elif (age < 21) and (money >= 5):
		return "Nice try,kiddo!"
	else:
		return "You're too poor and too young!"
print(alcohol(21,5))
print(alcohol(21,3))
print(alcohol(18,10))
print(alcohol(15,3))
```
