Sunteți pe pagina 1din 14

ABOUT PYTHON

Python is a multipurpose interpretive programming language with a design philosophy that focuses on
code readability level. Python is claimed as a language that combines the capabilities , with very clear
syntax code, and is equipped with the functionality of the standard library is large and comprehensive.
Python supports multiple progamming paradigms, including object oriented,imperative and functional
progamming or procedural styles. Python is often used to Tcl, Perl, Ruby, Scheme of Java.

HOW TO INSTALL
PYTHON ON WINDOWS

 STEP 1
 Download Python from http://python.org/download/

 STEP 2
 Once you have downloaded the Python MSI, simply navigate to the download location on your
computer, double clicking the file and pressing Run when the dialog box pops up.
 If you are the only person who uses your computer,simply leave the “install for all user” option
selected. If you have multiple accounts on your PC and don’t want to install it across all accounts,
select the”install just for me” option then press “Next”.

 If you want to change the install location, fell free to do so; however, it is best to leave it as is and
simply select next.
 Scroll down in the window and find the “add Python.exe to path” and click on the small red “x”.
Choose the “will be installed on local hard drive” option then press “Next”.

 You will notice that the installation will bring up a command prompt window while Python downloads
and install “Pip”. Pip is just a package management tool. This will allow you to install the additional
Python packcages that are available for download through PyPI (Python Package Index).

 Now that you have completed the installation process, click on “Finish.”
Adding python to system Path Variable

If you decided to use the Python 3.4.1, you will not need to follow this process. You can simply skip ahead to
the next section. The reason is that the new update integrates this process in the installation phase and so you
no longer need to manually add the System Path Variable. If you want to add a second set of variables for
Python, you can still follow the procedure but replace “27” with “34.”

If you chose to use the 2.7.3 version of Python, you will need to follow these steps. Once you have successfully
installed Python, it is time to add it to the System Path Variable. Doing this will allow Python to run scripts on
your computer without any conflicts of problems.

 Begin by opening the start menu and typing in “environment” and select the option called “Edit the system
environment variables.”

 When the “System Properties” window appears, click on “Environment Variables…”


 Once you have the “Environment Variables” window open, direct your focus to the bottom half. You will
notice that it controls all the “System Variables” rather than just this associated with your user. Click on
“New…” to create a new variable for Python

 Simply enter a name for your Path and the code shown below. For the purposes of this example we have
installed Python 2.7.3, so we will call the path: “Pythonpath.”
The string that you will need to enter is: “C:\Python27\;C:\Python27\Scripts;”

 Press “OK,” then “OK,” then “OK,” then the red “X” to accept all changes and exit the “System Properties”
window.
Simple Print Directive

 Now that we have successfully completed the installation process and added our “Environment Variable,”
you are ready to create your first basic Python script. Let’s begin by opening Python’s GUI by pressing
“Start” and typing “Python” and selecting the “IDLE (Python GUI).”

 Once the GUI is open, we will begin by using the simplest directive possible. This is the “print” directive
which simply prints whatever you tell it to, into a new line. Start by typing a print directive like the one
shown in the image below or copy and paste this text then press “Enter”

 With Python 3, the interactive mode signaled by the presence of “>>>” means you can do things like simple
math without any directives. Try doing a few simple problems as shown in the image below.

 You have successfully installed Python, added the environment variables, executed simple print directives,
and solved math problems.
TENTANG PYTHON

 Python adalah bahasa pemrograman interpretatif multiguna dengan filosofi perancangan yang berfokus
pada tingkat keterbacaan kode. Python diklaim sebagai bahasa yang menggabungkan kapabilitas,
kemampuan, dengan sintaksis kode yang sangat jelas, dan dilengkapi dengan fungsionalitas pustaka
standar yang besar serta komprehensif. Python mendukung beberapa paradigma progamming, termasuk
berorientasi objek, progamming penting dan fungsional atau gaya prosedural. Python sering digunakan
untuk Tcl, Perl, Ruby, Scheme Java.

CARA MENGINSTAL PYTHON PADA


WINDOWS

 LANGKAH 1
Download python di http://python.org/download/

 LANGKAH 2
Setelah Anda telah men-download Python MSI, cukup arahkan ke lokasi download di komputer Anda,
mengklik dua kali file tersebut dan menekan Run ketika kotak dialog muncul.
 Jika Anda adalah satu-satunya orang yang menggunakan komputer Anda, tinggalkan pilihan"install for all
users" . Jika Anda memiliki beberapa akun di PC Anda dan tidak ingin menginstalnya di semua account, pilih
"install just for me" lalu tekan "Next".

 Jika Anda ingin mengubah lokasi instalasi, kamu bebas untuk melakukannya; Namun, yang terbaik adalah
meninggalkannya dan hanya pilih “next”.
 Gulir ke bawah di jendela dan temukan "Add Python.exe to path" dan klik pada "x"merah kecil. Pilih yang
"will be installed on local hard drive" lalu tekan "Next".

 Anda akan melihat bahwa instalasi akan memunculkan jendela command prompt sementara download
Python dan menginstal "Pip". Pip hanyalah alat manajemen paket. Ini akan memungkinkan Anda untuk
menginstall packcages Python tambahan yang tersedia untuk di-download melalui PyPI (Python Package
Index).

 Sekarang Anda telah menyelesaikan proses instalasi, klik "Finish."


Menambahkan Python untuk Sistem Jalur Variabel

Jika Anda memutuskan untuk menggunakan Python 3.4.1, Anda tidak perlu mengikuti proses ini. Anda hanya
dapat langsung beralih ke bagian berikutnya. Alasannya adalah bahwa update baru mengintegrasikan proses
ini dalam tahap instalasi dan sehingga Anda tidak perlu lagi secara manual menambahkan Variabel Sistem
Path. Jika Anda ingin menambahkan set kedua variabel untuk Python, Anda masih dapat mengikuti prosedur
tetapi menggantikan "27" dengan "34."

Jika Anda memilih untuk menggunakan 2.7.3 versi Python, Anda harus mengikuti langkah-langkah ini. Setelah
Anda telah berhasil menginstal Python, sekarang saatnya untuk menambahkannya ke Variabel Sistem Path.
Melakukan hal ini akan memungkinkan Python untuk menjalankan script pada komputer Anda tanpa
konflik/masalah.

 Mulailah dengan membuka menu start dan mengetikkan "environment" dan pilih opsi yang disebut "Edit
the system environment variables."

 Ketika "System Properties" jendela muncul, klik " “Environment Variables…”


 Setelah Anda memiliki "environment variables" pada jendela yang terbuka, langsung fokus Anda ke bagian
bawah. Anda akan melihat bahwa itu mengontrol semua "Sistem Variabel" bukan hanya dikaitkan dengan
pengguna Anda. Klik "New ..." untuk membuat variabel baru untuk Python.

 Cukup masukkan nama untuk “path” dan “code” yang ditunjukkan di bawah ini. Untuk keperluan contoh ini
kita telah menginstal Python 2.7.3, jadi kita akan menyebut path : ". PYTHONPATH"
 Rangkaian yang perlu anda masukkan adalah: "C: \ Python27 \; C: \ Python27 \ Scripts;"

 Tekan "OK," kemudian "OK," kemudian "OK," kemudian "X"merah untuk menerima semua perubahan dan
keluar dari jendela "Sistem Properties" .
Simple Print Directive
 Sekarang kita telah berhasil menyelesaikan proses instalasi dan menambahkan "Environment Variables".
Anda siap untuk membuat script Python dasar pertama . Mari kita mulai dengan membuka GUI Python
dengan menekan "Start" dan mengetik "Python" dan memilih "IDLE (GUI Python)."

 Setelah GUI terbuka, kita akan mulai dengan menggunakan direktif sederhana. "print" adalah direktif yang
hanya mencetak apa pun yang Anda kirim ke, ke baris baru. Mulailah dengan mengetik direktif cetak
seperti yang ditunjukkan pada gambar di bawah atau copy dan paste teks ini kemudian tekan "Enter”

 Dengan Python 3, modus interaktif ditandai dengan ">>>" berarti Anda dapat melakukan hal-hal seperti
matematika yang sederhana tanpa arahan. Cobalah melakukan masalah sederhana seperti yang
ditunjukkan pada gambar di bawah.

 Anda telah berhasil menginstal python,menambahkan environment variabel, mengeksekusi simple print
directives, dan memecahkan masalah matematika.
VOCABULARY

ENGLISH MEANING IN INDONESIA


Appears Muncul, tampak, tampil, kelihatan, timbul,
Comprehensive Luas, lengkap, menyeluruh, teliti, sesakma
Imperative Sangat Penting, bentuk perintah
Interpretive Interpretatif
Multipurpose SerbaGuna
Multiple Kelipatan, perkalian, yang terdiri dari banyak bagian
Notice Melihat, memperhatikan, ulasan, pemberitahuan,
pengumuman,perhatian, pernyataan
Paradigms Paradigma, pola pikir, contoh, model pola
Capabilities Kemampuan, kapabilitas, kesanggupan
Readability Dapat dibaca
Simply Hanya
Package Paket, pak, bungkus
Variables Variable, faktor tidak tetap
Associated Terkait
Shown Menunjukkan, menampilkan, memperlihatkan
String Rangkaian, tali
Directive Yang menujuk, direktife, instruksi, perintah, pedoman
Executed Eksekusi, dieksekusi
Expertise Keahlian, kepiawaian
syntax Sintaksis, ilmu kalimat

Tanggal Saran Guru Nilai

Paraf Siswa Paraf Guru Paraf Orang Tua

S-ar putea să vă placă și