Langsung ke konten utama

Beberapa Blog: Why Python?

Masih berkaitan dengan posting sebelumnya: Mengapa (Bukan) Python?, ini hasil Googling atas term pencarian: 'Why Python'?
  1. Why Python? | Linux Journal

    30 Apr 2000 ... Article by Eric Raymond where he explains reasons that led him to switch from Perl to Python.
    www.linuxjournal.com/article/3882 
  2. Python Success Stories

    17 Jan 2003 ... My first look at Python was an accident, and I didn't much like what I saw at the time. It was early 1997, and Mark Lutz's book Programming ...
    www.python.org/about/success/esr/ 
  3. What is Python and Why Python

    30 Jul 2007 ... Python is an agile programming language. ... that either have negative connotations or don't really get across why Python is so great. ...
    pythoncard.sourceforge.net/what_is_python.html 
  4. Philip Guo - Why Python is a great language for teaching beginners ...

    18 May 2007 ... I think that Python is superior to many other languages for teaching introductory programming because it allows the student to focus less on ...
    www.stanford.edu/~pgbovine/python-teaching.htm 
  5. Python Compared to Other Languages

    19 Sep 2009 ... Several in 2006, David Howard's C++ vs Java vs Python vs Ruby. This essay provides implementations of moderately simple algorithms, ...
    wiki.python.org/moin/LanguageComparisons - Tembolok - Mirip
  6. Python & Java: a Side-by-Side Comparison - Stephen Ferg's Home Page

    Python & Java : A Side-by-Side Comparison. Site home page. The material on this page has been moved to the Python Conquers the Universe blog.
    www.ferg.org/projects/python_java_side-by-side.html
  7. Why Python

    4 Basic Python Programming: Some Practice and if. In this tutorial we will slow down a bit. You'll learn a few new things including how to write to a file. ...
    www.zacharski.org/python2/Python4.pdf
  8. Python (programming language) - Wikipedia, the free encyclopedia

    Python is a general-purpose high-level programming language whose design philosophy emphasizes code readability. Python aims to combine "remarkable power ...
    en.wikipedia.org/wiki/Python_(programming_language) 
  9. Quotes about Python

    Python is used successfully in thousands of real-world business applications around the world, including many large and mission critical systems. ...
    www.python.org/about/quotes/ 
  10. Why Python?

    Why should you consider Python for scientific computing? The answer is in this talk! ... Python is a dynamic object-oriented programming language that ...
    folk.uio.no/hpl/WhyPython.pdf

Komentar

Postingan populer dari blog ini

Dasar-Dasar Python (2)

Sebagian besar baris program yang kita tuliskan akan berupa sebuah expression . Contoh sederhana dari expression misalnya 2 + 3. Sebuah expression terdiri dari operand dan operator . Operand : 2 dan 3 Operator : + Operator adalah penanda bahwa program yang kita buat sedang melakukan sesuatu, dalam contoh di atas program kita sedang menjumlahkan angka 2 dan 3. Operasi Bilangan Seperti telah disinggung sebelumnya Python mengenal bilangan tipe Integer, Long Integer, Floating Point dan Complex Number. Dan seperti bahasa pemrograman lain pada umumnya, kita dapat memanipulasi bilangan dengan operator operasi bilangan. Operasi bilangan yang umum digunakan: penjumlahan, pengurangan, perkalian, pembagian. # operasi integer a = 3 + 4 # a bernilai 7 b = 4 - 3 # b bernilai 1 c = 3 * 4 # c bernilai 12 d = 4 / 3 # pembagian integer, d bernilai 1 e = 4 % 3 # sisa pembagian integer, e bernilai 1 print a, b, c, d, e # cetak hasil # operasi long integer f = 10000000000L + 25

Menghitung Pi

Wah, lama tidak menggunakan Python, otak terasa buntu. Soal yang perlu dipecahkan sederhana: hitunglah Pi menggunakan Wallis Formula : setelah 1 jam mencoba, maka saya menemukan potongan kode yang saya rasa betul: In [50]: pi = 2 * reduce(lambda x,y: x*y, [(4.0*i**2)/(4.0*i**2-1) for i in xrange(1,1000)]) In [51]: pi Out[51]: 3.1408069608284657 Wah, ternyata lebih ribet dari yang saya kira pada awalnya. Namun cool ... kita dapat menghitung Pi hanya dengan satu baris kode yang melibatkan fungsi built-in reduce , lambda , serta list comprehension . Yang baru saya pelajari dan gunakan adalah fungsi reduce . Potongan penjelasan mengenai fungsi reduce dari help Python: reduce ( function ,  iterable [ ,  initializer ] ) Apply   function   of two arguments cumulatively to the items of   iterable , from left to right, so as to reduce the iterable to a single value. For example, reduce(lambda   x,   y:   x+y,   [1,   2,   3,   4,   5])   calculates   ((((1+2)+3)+4)+5) . The l

Belajar: List Method

Sekedar mengulang mengenai 'list method ': method (atau ada yang menyebug fungsi) bawaan untuk objek 'list'. List Method: append : menambahkan item ke dalam list count : menghitung berapa banyak item ada dalam list extend : menambahkan item dari list lain ke dalam list index : memberitahukan index/posisi dari sebuah item dalam list pop : mengeluarkan sebuah item dari list; mengembalikan item tersebut sebagai 'return value'.  Jika tidak ditentukan index item yang akan dikeluarkan, fungsi akan mengeluarkan item terakhir dalam list remove : menghapus item tertentu dari list reverse : mengurutkan list secara terbalik (dari item besar ke kecil) sort : mengurutkan list (dari item kecil ke besar) Beberapa contoh: >>> my_list = ['chopsticks', 'dark soy sauce', 'wasabi', 'fugu', 'sake', 'ramen', 'shiitake mushrooms'] >>> my_list.sort() >>> my_list ['chopsticks', '