Вы находитесь на странице: 1из 9

Pengenalan Python

Mohammad Syarief
mohammad syarief@trunojoyo.ac.id
Why Python? [1]
• Python programs can run on any platform,
you can carry code created in Windows
machine and run it on Mac or Linux
 Python has inbuilt large library with prebuilt
and portable functionality, also known as
the standard library
 Python is an expressive language
Why Python? [2]
 Python is free and open source
 Python code is about one third of the size of
equivalent C++ and Java code
 Python can be both dynamically and strongly
typed--dynamically typed means it
 is a type of variable that is interpreted at
runtime, which means, in Python, there
• is no need to define the type (int
(int or float)
float) of
the variable
Siapa pengguna Python [1]
Google makes extensive use of Python in its web search
systems.
The popular YouTube video sharing service is largely
written in Python.
The Dropbox storage service codes both its server and
desktop client software primarily in Python.
The Raspberry Pi single-board computer promotes Python as
its educational language.
EVE Online,
Online, a massively multiplayer online game (MMOG)
by CCP Games, uses Python broadly.
Google’s App Engine web development framework uses
Python as an application language.
Siapa pengguna Python [2]
The widespread BitTorrent peer-to-peer file sharing system began
its life as a Python program.
Industrial Light & Magic,
Magic, Pixar,
Pixar, and others use Python in the
production of animated movies.
ESRI uses Python as an end-user customization tool for its
popular GIS mapping products.
The IronPort email server product uses more than 1 million lines
of Python code to do its job.
Maya,
Maya, a powerful integrated 3D modeling and animation system,
provides a
Python scripting API.
The NSA uses Python for cryptography and intelligence analysis.
Siapa pengguna Python [3]
iRobot uses Python to develop commercial and military robotic devices.
The Civilization IV game’s customizable scripted events are written
entirely in Python.
(OLPC)) project built its user interface and
The One Laptop Per Child (OLPC
activity model in Python.
Netflix and Yelp have both documented the role of Python in their
software infrastructures.
Intel, Cisco,
Cisco, Hewlett-Packard,
Hewlett-Packard, Seagate,
Seagate, Qualcomm,
Qualcomm, and IBM use
Python for hardware testing.
JPMorgan Chase,
Chase, UBS,
UBS, Getco,
Getco, and Citadel apply Python to financial
market forecasting.
NASA,
NASA, Los Alamos,
Alamos, Fermilab,
Fermilab, JPL,
JPL, and others use Python for
scientific programming tasks.
Python Implementation Alternatives

• CPython: The standard


• Jython: Python for Java
• IronPython: Python for .NET
• Stackless: Python for concurrency
• PyPy: Python for speed
• ==================================
• Cython: A Python/C hybrid
• Shed Skin: A Python-to-C++ translator
• Psyco: The original just-in-time compiler
Menjalankan Python
• install python
• set system path
set path=%path%;C:\python27
• Interactive Mode
• Eksekusi python script
• pyCharm
Writing Variable
 Reserved key words such as if, else, and so on
cannot be used for naming variables
 Variable names can begin with _ or a letter
 Variable names can be in lower case and
uppercase
 Variable names cannot start with a number
 White space characters are not allowed in the
naming of a variable

Вам также может понравиться