Introduction of Python-1 Flipbook PDF

Introduction of Python-1
Author:  A

74 downloads 120 Views 1MB Size

Recommend Stories


Introduction Introducción Introduction
Instruction Bulletin Boletín de instrucciones 30072-014-09A 05/2008 Raleigh, NC, USA Directives d'utilisation Replaces / Reemplaza / Remplace 3007

Introduction to the History of Argentine Tango
Trad 104: Issues in Latin American Society & Popular Culture Introduction to the History of Argentine Tango Guest Lecturer: Derrick Del Pilar 10/29/0

INTRODUCTION DEFINITIONS
INT E R AM E RI C AN U NI VE R SIT Y O F P UE RT O RI CO NO M I N AT I O N, A D M I S S I O N A N D J- 1 VI S A PR O CE SS E S T O ST U D Y AT T HE I

Introducción Introduction
Índice • Index 2 Introducción Introduction 3 Territorio y Demografía Territory and Demographics 5 Demografía Demographics 7 Indicadores Macroeconómico

Story Transcript

Introduction of Python - 1 Marina Hermaningsih

Data Type Integer

Floating Point

Whole numbers

Decimal Numbers

”Characters”

True or False

Class = int Slicing & Indexing are not allowed

Class = float Slicing & Indexing are not allowed

Class = str Allow Slicing & Indexing . Iterable

Class = bool Slicing & Indexing are not allowed

String ““

Boolean

Data Type List [ ]

Class : list

Dictionary {key : value } []

{}

Ordered, mutable, iterable, allow duplicate, indexing, slicing, Tuple ( ) Class : tuple Ordered, immutable, iterable, allow duplicate, indexing, slicing

Class : dict Keys are immutable, iterable Indxing and slicing are not allowed Set { }

()

{}

Class : set Unordered, mutable,iterable duplicate, indexing and slicing are not allowed

Elements of data don’t have a defined order, that order will change after running

Mutable means we can change the elements /items after it has been created Return sequence of items/elements

Insight Unordered

Mutable

Ordered

2023

Slicing

Duplicate

Indexing Iterable

Iterable = Can be iterated by loop method

Elements of data have a defined order, that order will not change after running

Allow duplicate means data can have two items with the same value Positif index starts 0 from left side, while negative index starts-1 from right index

Python Operation Arithmetic

Assignment

Comparison

Mathematical Set

x+y

x += y

x>y

x-y

Union x|y

x -= y

x= y x

Get in touch

Social

© Copyright 2013 - 2024 MYDOKUMENT.COM - All rights reserved.