{ "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": [ "" ] }, "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": [ "" ] }, "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 }