{"id":39,"date":"2025-08-02T15:47:33","date_gmt":"2025-08-02T15:47:33","guid":{"rendered":"https:\/\/learn.rantissi.my.id\/?p=39"},"modified":"2025-08-02T15:47:33","modified_gmt":"2025-08-02T15:47:33","slug":"pengenalan-python-dan-instalasi","status":"publish","type":"post","link":"https:\/\/learn.rantissi.my.id\/index.php\/2025\/08\/02\/pengenalan-python-dan-instalasi\/","title":{"rendered":"Pengenalan Python dan Instalasi"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"1-apa-itu-python\">1. Apa itu Python?<\/h2>\n\n\n\n<p>Python adalah bahasa pemrograman:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mudah dipahami<\/li>\n\n\n\n<li>Cocok untuk pemula<\/li>\n\n\n\n<li>Banyak digunakan untuk:\n<ul class=\"wp-block-list\">\n<li>Web Development<\/li>\n\n\n\n<li>Data Science<\/li>\n\n\n\n<li>Machine Learning<\/li>\n\n\n\n<li>Automation<\/li>\n\n\n\n<li>Game Development<\/li>\n\n\n\n<li>dan banyak lagi\u2026<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2-kenapa-python\">2. Kenapa Python?<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sintaks mirip bahasa manusia<\/li>\n\n\n\n<li>Dokumentasi &amp; komunitas besar<\/li>\n\n\n\n<li>Banyak library siap pakai<\/li>\n\n\n\n<li>Bisa untuk project kecil sampai besar<\/li>\n\n\n\n<li>Cocok untuk belajar dasar programming<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3-instalasi-python\">3. Instalasi Python<\/h2>\n\n\n\n<p>Website resmi:<br><a class=\"\" href=\"https:\/\/python.org\/downloads\">https:\/\/python.org\/downloads<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"windows\">Windows:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download Python versi terbaru<\/li>\n\n\n\n<li>Saat instalasi: Centang \u201cAdd Python to PATH\u201d<\/li>\n\n\n\n<li>Klik Install<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"linux\">Linux:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<br>sudo apt install python3 python3-pip<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"macos\">macOS:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>brew install python<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4-instalasi-jupyter-notebook\">4. Instalasi Jupyter Notebook<\/h2>\n\n\n\n<p>Supaya coding-nya enak dan interaktif.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-pip-jika-belum\">Install pip (jika belum)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>python -m ensurepip --upgrade<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-jupyter-notebook\">Install Jupyter Notebook<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install notebook<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"menjalankan-jupyter\">Menjalankan Jupyter<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>jupyter notebook<\/code><\/pre>\n\n\n\n<p>Akan terbuka di browser otomatis.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"5-coba-jalankan-python\">5. Coba Jalankan Python<\/h2>\n\n\n\n<p>Jika tanpa Jupyter, bisa langsung di terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python<\/code><\/pre>\n\n\n\n<p>Coba ketik:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"Halo Dunia!\")<\/code><\/pre>\n\n\n\n<p>Jika tampil:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Halo Dunia!<\/code><\/pre>\n\n\n\n<p>Berarti Python sudah siap!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Apa itu Python? Python adalah bahasa pemrograman: 2. Kenapa Python? 3. Instalasi Python Website resmi:https:\/\/python.org\/downloads Windows: Linux: macOS: 4. Instalasi Jupyter Notebook Supaya coding-nya enak dan interaktif. Install pip (jika belum) Install Jupyter Notebook Menjalankan Jupyter Akan terbuka di browser otomatis. 5. Coba Jalankan Python Jika tanpa Jupyter, bisa langsung di terminal: Coba ketik:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":20,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-python"],"_links":{"self":[{"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":1,"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":40,"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/posts\/39\/revisions\/40"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/media\/20"}],"wp:attachment":[{"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learn.rantissi.my.id\/index.php\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}