Python Basic Version 1 (Myanmar) PDF [PDF]

  • 0 0 0
  • Gefällt Ihnen dieses papier und der download? Sie können Ihre eigene PDF-Datei in wenigen Minuten kostenlos online veröffentlichen! Anmelden
Datei wird geladen, bitte warten...
Zitiervorschau

http://crossnetmm.com/

1

http://crossnetmm.com/

Table of contents #Title#

.Pag

e Intro!!

6

1.What is Program

6

1.1. How Computer Work

7

1.2. Basic Computer Work flow

10

1.4. The Language which Can spoke to the Computer

12

1.4.1 Print out Hello, world by Assembly language

13

1.4.2 Basic Knowledge of Assembly

14

1.4.3 Assembly Register

16

1.5 Compiler vs Interpreter

18

1.5.1 Print Hello, world With C Language

18

1.6 Compared HelloWorld in Different Language

20

2. Introduction to Python

21

2.1History of Python

21

2.2 Python Installation

21

2.3 What can we do with Python

24

2.4 What python is?

24

2.4.1 Python Interactive mode & Script Mode

25

2.5 Very first Program “Hello world” and its syntax, key-words

26

2.6 Python Key-words

29

2.7 single vs double quotes

31

2

http://crossnetmm.com/ 2.8 Variable

31

2.8.1 Numbers

34

2.8.2 String

35

2.8.2.1 int() str() float()

37

2.8.3 Python Lists

37

2.8.4 Python Tuples

40

2.8.5 Python Dictionary

41

3. Python Operator

45

3.1 Arithmetic Operators

45

3.1.1 Addition ( + )

46

3.1.2 Subtraction ( - )

47

3.1.3 Multiplication ( * )

47

*********** Python User Input ***********

48

*********** Python 2.7(division, Modulus, Exponentiation) ***********

51

***********

52

Python 3.7(division, Modulus, Exponentiation)

***********

3.2 python Comparison operator

53

3.3 Python assignment Operator

56

3.4 Python Membership Operator

58

3.5 Python Identity Operator

59

4. Python Decision maker

60

4.1 if statement

60

Python Indentation

62

4.2 Python if else statement

64

4.3 Python if .. elif .. else statement

66

3

http://crossnetmm.com/ 4.4 Nested if statement

69

5. Python Loops

70

5.1 Python for loops

70

5.2 Python While loop

75

5.2.1 Infinite loop

77

5.2.2 Else statement with while loop

77

5.3 Nested Loop

78

5.4 Loop control statement

80

5.4.1 Break Statement

81

5.4.2 Continue Statement

82

5.4.3 Python Pass Statement

83

6. Python - Date & Time

83

6.1.1 Python Datetime, Date, Time

84

6.1.2 Date object to represent a date

85

*********** import vs from …. import ***********

85

*** >> Using from module import *