File size: 8,015 Bytes
c315347 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | {
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "fe1c6cff",
"metadata": {},
"outputs": [],
"source": [
"from dotenv import load_dotenv\n",
"from openai import OpenAI\n",
"from IPython.display import Markdown, display"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "5a5709b1",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"load_dotenv(override = True)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "321a7c0f",
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"Absolutely! Cape Town is a fantastic destination with plenty to offer even if you're on a limited budget. Here are some of the best budget-friendly spots and activities in Cape Town:\n",
"\n",
"### 1. **Table Mountain (Hiking)**\n",
"- Instead of taking the cable car, hike up Table Mountain via popular trails like **Platteklip Gorge** or **Skeleton Gorge** for free.\n",
"- The hike offers stunning views of the city and coastline.\n",
"- Remember to start early and bring water, snacks, and sunscreen.\n",
"\n",
"### 2. **Lion's Head**\n",
"- Another iconic hike in Cape Town.\n",
"- The hike takes about 2-3 hours round trip, offering panoramic views, especially beautiful at sunrise or sunset.\n",
"- Free and well-marked trail, but some parts are a bit steep—wear good shoes!\n",
"\n",
"### 3. **Kirstenbosch National Botanical Garden (Entry Fee)**\n",
"- Entrance is affordable (around R60-80 for locals; slightly more for visitors).\n",
"- Beautiful gardens showcasing indigenous plants with scenic mountain backdrops.\n",
"- Great for picnics or a relaxing walk.\n",
"\n",
"### 4. **Beaches**\n",
"- **Boulders Beach** – Famous for the penguin colony; entry fee is modest (about R160).\n",
"- **Clifton Beaches** – Four pristine sandy beaches, completely free.\n",
"- **Muizenberg Beach** – Known for colorful beach huts and surfing, free to access.\n",
"\n",
"### 5. **Bo-Kaap Neighborhood**\n",
"- Walk around Bo-Kaap to enjoy the vibrant colorful houses and learn about Cape Malay culture.\n",
"- Free self-guided walking tours available (just explore and take photos).\n",
"- You can also visit the Bo-Kaap Museum with a small entry fee.\n",
"\n",
"### 6. **V&A Waterfront**\n",
"- Free to explore and window shop.\n",
"- Street performers, markets, and affordable eateries.\n",
"- You can visit the *Zeitz MOCAA* (Museum of Contemporary Art Africa) — entrance fee applies but it’s one of the best modern art museums in Africa.\n",
"\n",
"### 7. **Company’s Garden**\n",
"- Historic public garden in the city center.\n",
"- Free to enter, with benches, a rose garden, and local squirrels.\n",
"- Close to museums and the South African National Gallery.\n",
"\n",
"### 8. **Greenmarket Square**\n",
"- A bustling market in the city center.\n",
"- Great for bargain souvenirs, artwork, and crafts.\n",
"- Browsing is free; bargaining is expected.\n",
"\n",
"### 9. **Chapman's Peak Drive**\n",
"- One of the world’s most scenic coastal drives.\n",
"- There is a small toll fee (around R50 one way).\n",
"- Stop at various lookouts for incredible photo opportunities.\n",
"\n",
"### 10. **District Six Museum**\n",
"- Entry fee is reasonable (about R45).\n",
"- Offers a poignant history of apartheid and forced removals in Cape Town.\n",
"\n",
"---\n",
"\n",
"### Bonus Tips for Saving Money:\n",
"- Use **MyCiTi buses** to get around cheaply and safely.\n",
"- Buy groceries and prepare your own meals.\n",
"- Visit free walking tours (tip-based) to learn about the city.\n",
"- Visit during the shoulder seasons (spring and autumn) for better deals on accommodation.\n",
"\n",
"Enjoy your trip to Cape Town! Let me know if you want recommendations for budget accommodation or food spots!"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"Question = \"Can you provide the best spots to visit in Cape Town in limited Budget\"\n",
"messages = [{\"role\":\"user\", \"content\":Question}]\n",
"\n",
"openai = OpenAI()\n",
"response = openai.chat.completions.create(\n",
" model = \"gpt-4.1-mini\",\n",
" messages = messages\n",
")\n",
"\n",
"output = response.choices[0].message.content\n",
"\n",
"display(Markdown(output))"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "7cc29f57",
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"Certainly! If you’re visiting Cape Town on a limited budget, here are the **top 3 must-visit spots** that offer incredible experiences without breaking the bank:\n",
"\n",
"1. **Table Mountain (via Platteklip Gorge Hiking Trail)** \n",
" - *Why visit*: Iconic landmark with stunning panoramic views of Cape Town and the coastline. \n",
" - *Cost*: Free if you hike up (cable car is extra but optional). \n",
" - *Tip*: Start early to avoid crowds and midday heat.\n",
"\n",
"2. **Bo-Kaap Neighborhood** \n",
" - *Why visit*: Famous for its colorful houses, rich history, and vibrant culture. Great for photography and exploring local markets and eateries. \n",
" - *Cost*: Free to walk around; optional small fees for museum visits. \n",
" - *Tip*: Try traditional Cape Malay food at affordable local spots.\n",
"\n",
"3. **Kirstenbosch National Botanical Garden** \n",
" - *Why visit*: Beautiful gardens showcasing South Africa’s unique flora with stunning mountain backdrop. Great for picnics and nature walks. \n",
" - *Cost*: Low entrance fee (around R75 for locals, slightly higher for tourists). \n",
" - *Tip*: Bring your own snacks to save money.\n",
"\n",
"These spots provide a perfect mix of natural beauty, culture, and history, all accessible on a budget!"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"messages = [{\"role\":\"user\", \"content\":Question},\n",
" {\"role\":\"user\",\"content\":\"Choose only Top 3 spots only\"}]\n",
"\n",
"openai = OpenAI()\n",
"response = openai.chat.completions.create(\n",
" model = \"gpt-4.1-mini\",\n",
" messages = messages\n",
")\n",
"\n",
"output = response.choices[0].message.content\n",
"\n",
"display(Markdown(output))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "c644660b",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "agents (3.12.5)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|