{"cells":[{"cell_type":"markdown","metadata":{"id":"Wf5KrEb6vrkR"},"source":["# Welcome to Colab!"]},{"cell_type":"code","source":["for i in range(1, 101):\n"," if i % 3 == 0 and i % 5 == 0:\n"," print(i, \"FizzBuzz\")\n"," elif i % 3 == 0:\n"," print(i, \"Fizz\")\n"," elif i % 5 == 0:\n"," print(i, \"Buzz\")\n"," else:\n"," print(i)"],"metadata":{"id":"pGWZZtC2fB4n","executionInfo":{"status":"ok","timestamp":1773930305691,"user_tz":-420,"elapsed":24,"user":{"displayName":"202510715122 IKHSAN MAULANA RIZKI","userId":"03999450895592639369"}},"outputId":"01517360-a5a0-4ad5-fd55-4900c12b6a2a","colab":{"base_uri":"https://localhost:8080/"}},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["1\n","2\n","3 Fizz\n","4\n","5 Buzz\n","6 Fizz\n","7\n","8\n","9 Fizz\n","10 Buzz\n","11\n","12 Fizz\n","13\n","14\n","15 FizzBuzz\n","16\n","17\n","18 Fizz\n","19\n","20 Buzz\n","21 Fizz\n","22\n","23\n","24 Fizz\n","25 Buzz\n","26\n","27 Fizz\n","28\n","29\n","30 FizzBuzz\n","31\n","32\n","33 Fizz\n","34\n","35 Buzz\n","36 Fizz\n","37\n","38\n","39 Fizz\n","40 Buzz\n","41\n","42 Fizz\n","43\n","44\n","45 FizzBuzz\n","46\n","47\n","48 Fizz\n","49\n","50 Buzz\n","51 Fizz\n","52\n","53\n","54 Fizz\n","55 Buzz\n","56\n","57 Fizz\n","58\n","59\n","60 FizzBuzz\n","61\n","62\n","63 Fizz\n","64\n","65 Buzz\n","66 Fizz\n","67\n","68\n","69 Fizz\n","70 Buzz\n","71\n","72 Fizz\n","73\n","74\n","75 FizzBuzz\n","76\n","77\n","78 Fizz\n","79\n","80 Buzz\n","81 Fizz\n","82\n","83\n","84 Fizz\n","85 Buzz\n","86\n","87 Fizz\n","88\n","89\n","90 FizzBuzz\n","91\n","92\n","93 Fizz\n","94\n","95 Buzz\n","96 Fizz\n","97\n","98\n","99 Fizz\n","100 Buzz\n"]}]},{"cell_type":"markdown","metadata":{"id":"1edGr7JPAZyr"},"source":["## Google Colab is available in VS Code!\n","\n","\n","Try the new [Google Colab extension](https://marketplace.visualstudio.com/items?itemName=Google.colab) for Visual Studio Code. You can get up and running in just a few clicks:\n","\n","* In VS Code, open the ***Extensions*** view and search for 'Google Colab' to install.\n","* Open the kernel selector by creating or opening any `.ipynb` notebook file in your local workspace and either running a cell or clicking the ***Select Kernel*** button in the top right.\n","* Click ***Colab*** and then select your desired runtime, sign in with your Google account, and you're all set!\n","\n","See more details in our [announcement blog here](https://developers.googleblog.com/google-colab-is-coming-to-vs-code)."]},{"cell_type":"markdown","metadata":{"id":"Jp6c2c5p22J0"},"source":["## 🎁 Free Pro Plan for Gemini & Colab for US College Students 🎓\n","\n","Get more access to our most accurate model Gemini 3 Pro for advanced coding, complex research, and innovative projects, backed by Colab’s dedicated high-compute resources for data science and machine learning.\n","\n","Get the Gemini free offer at [gemini.google/students](https://gemini.google/students?utm_source=colab&utm_medium=banner&utm_campaign=students_xpa_us-colab-banner). \n","Get the Colab free offer at [colab.research.google.com/signup](https://colab.research.google.com/signup). \n","Terms Apply."]},{"cell_type":"markdown","metadata":{"id":"C1XfGyQXQK1n"},"source":["## Access popular AI models via Google-Colab-AI Without an API Key\n","All users have access to most popular LLMs via the `google-colab-ai` Python library, and paid users have access to a wider selection of models. For more details, refer to the [getting started with google colab ai](https://colab.research.google.com/github/googlecolab/colabtools/blob/main/notebooks/Getting_started_with_google_colab_ai.ipynb).\n","\n"]},{"cell_type":"code","execution_count":null,"metadata":{"id":"JQesyTg7QSU-"},"outputs":[],"source":["from google.colab import ai\n","response = ai.generate_text(\"What is the capital of France?\")"]},{"cell_type":"markdown","metadata":{"id":"-sdyeRMXPvU_"},"source":["## Explore the Gemini API\n","The Gemini API gives you access to Gemini models created by Google DeepMind. Gemini models are built from the ground up to be multimodal, so you can reason seamlessly across text, images, code, and audio.\n","\n","**How to get started?**\n","* Go to [Google AI Studio](https://aistudio.google.com/) and log in with your Google account.\n","* [Create an API key](https://aistudio.google.com/app/apikey).\n","* Use a quickstart for [Python](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started.ipynb), or call the REST API using [curl](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/rest/Prompting_REST.ipynb).\n","\n","**Discover Gemini's advanced capabilities**\n","* Play with Gemini [multimodal outputs](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Image-out.ipynb), mixing text and images in an iterative way.\n","* Discover the [multimodal Live API](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started_LiveAPI.ipynb ) (demo [here](https://aistudio.google.com/live)).\n","* Learn how to [analyze images and detect items in your pictures](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Spatial_understanding.ipynb\") using Gemini (bonus, there's a [3D version](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Spatial_understanding_3d.ipynb) as well!).\n","* Unlock the power of [Gemini thinking model](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started_thinking.ipynb), capable of solving complex task with its inner thoughts.\n"," \n","**Explore complex use cases**\n","* Use [Gemini grounding capabilities](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_grounding_for_research_report.ipynb) to create a report on a company based on what the model can find on internet.\n","* Extract [invoices and form data from PDF](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Pdf_structured_outputs_on_invoices_and_forms.ipynb) in a structured way.\n","* Create [illustrations based on a whole book](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Book_illustration.ipynb) using Gemini large context window and Imagen.\n","\n","To learn more, check out the [Gemini cookbook](https://github.com/google-gemini/cookbook) or visit the [Gemini API documentation](https://ai.google.dev/docs/).\n"]},{"cell_type":"markdown","metadata":{"id":"Nma_JWh-W-IF"},"source":["Colab now has AI features powered by [Gemini](https://gemini.google.com). The video below provides information on how to use these features, whether you're new to Python, or a seasoned veteran.\n","\n","