Starting With Python: Click To Edit Master Title Style
Starting With Python: Click To Edit Master Title Style
Starting with
Python
Module 1
1
Click to edit Master title style
Outline:
• Introduction to Python
• The print() Function
• Data Types
• Type Casting
2
Click to
What edit Master title style
is python?
3
Click to
What edit Master title style
is python?
4
Click to Interpreter
Python edit Master title style
5
Click to Shell
Python edit Master title style
6
Click to Code
Python edit Master
Editorstitle style
7
Click to Common
Python edit Master title style
Syntax
8
Click to editin
Indentation Master title style
Python
9
Click to editRules
Indentation Master title style
10
Click to edit[01]
Simulation Master title style
11
Click to editinMaster
Comments Pythontitle style
12
Clicktype()
The to editFunction
Master title style
13
Click to edit
Variables Master title style
Assignment
14
Click to Conventions
Naming edit Master title style
Any suitable identifier can be used as a name of a variable, based on the following rules:
1. The name of the variable should start with either an alphabet letter (lower or upper case)
or an underscore (_), but it cannot start with a digit.
2. More than one alpha-numeric characters or underscores may follow.
3. The variable name can consist of alphabet letter(s), number(s) and underscore(s) only.
1. For example, myVar, MyVar, _myVar, MyVar123 are valid variable names, but m*var, my-var, 1myVar
are invalid variable names.
16
Click toData
Scalar editTypes
Master title style
• int: Positive or negative whole numbers (without a fractional part)
e.g. -10, 10, 456, 4654654.
• float: Any real number with a floating-point representation in which
a fractional component is denoted by a decimal symbol or
scientific notation e.g. 1.23, 3.4556789e2.
• complex: A number with a real and imaginary component
represented as x + 2y.
• bool: Data with one of two built-in values True or False. Notice
that 'T' and 'F' are capital. true and false are not valid booleans
and Python will throw an error for them.
• None: The None represents the null object in Python. A None is
returned by functions that don't explicitly return a value.
17
Click to edit
Sequence Master
Data Typestitle style
19
Click to edit
Mutable and Master titleData
Immutable styleTypes
20
Click to edit Master
Mathematical title style
Operators
21
Click to edit
Objects Master title style
Identity
22
Click to edit
Multiple Master
Variable title style
Assignment
23
Click to edit[02]
Simulation Master title style
24
Click to
Type edit Master title style
Casting
25
Click to
Type edit Master title style
Casting
26
Click to Functions
Built-in edit Master title style
A numeric object of one type can be converted in another type using the
following functions:
27
Click to edit[03]
Simulation Master title style
28