Module 1 PDF
Module 1 PDF
Module 1 PDF
Solve complex
problems in less
time with fewer
lines of code
HUGE CROSS-
HIGH-LEVEL
COMMUNITY PLATFORM
LARGE
ECOSYSTEM
WHY PYTHON?
WHY
PYTHON?
A multi-purpose language with
a simple, and beginner –
friendly syntax
WHY PYTHON
PYTHON DRAWBACKS
• it's not a speed demon - Python does not deliver exceptional performance
• in some cases it may be resistant to some simpler testing techniques - this may
mean that debugging Python's code can be more difficult than with other
languages; fortunately, making mistakes is always harder in Python.
PYTHON DRAWBACKS
Division of Integers When two integers are divided, Whenever two integers are
you always provide integer value. divided, you get a float value
Cython:
Jython
Python written in Java
• Press F5
• The editor window shows clearly where it happened.
How to spoil
and fix your
code
and fix your • the location of the error (the name of the file
containing the error, line number and module
code name);
• the content of the erroneous line; note: IDLE’s
editor window doesn’t show line numbers, but it
displays the current cursor location at the bottom-
right corner; use it to locate the erroneous line in a
long source code;
• the name of the error and a short explanation
• Sandbox allows Python code to be run in an Internet browser.
• The Sandbox interface consists of three main parts:
• the Editor window, which lets you type in your code,
• the Console window, which lets you see the output of your
programs,
• a tool named the Action Buttons bar, which lets you run your
code, refresh the editor window,
• and the Settings button, which lets you adjust display settings
and switch between Python/C/C++ environments.
Sandbox
Sandbox
Terima Kasih