You are on page 1of 70

INTECH 3111 Lab

INTEGRATIVE
PROGRAMMING AND
TECHNOLOGIES 1
Prepared by: CCCD
3
4
5
Installing Python

6
7
8
First python program

9
10
Save it with extension
of .py

11
12
Printing in python

13
Printing without new
line

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Getting Input

37
Casting input

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Activity
▪ If user input is even (ex. 4) ▪ If user input is odd (ex. 5)
Output should be Output should be
1 12345
12 1234
123 123
1234 12
1

70

You might also like