-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsyntax.py
More file actions
109 lines (70 loc) · 1.05 KB
/
Copy pathsyntax.py
File metadata and controls
109 lines (70 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# name = "Benjamin"
# age = 21
# height = 1.75
# student = True
# greeting = "hello\nworld"
# print(greeting)
# # print(name)
# # name = 100
# print(type(name))
# me = "benjamin"
# he = me
# me = "Agogo"
# print(me)
# print(he)
# Name = "Benjamin"
# x = 100
# y = x
# x = 200
# print(x)
# print(y)
# print("")
# numbers = [10, 20, 30]
# other = numbers
# numbers[0] = 23
# print(numbers)
# print(other)
# print("")
# num = [10, 20, 30]
# othe = num
# num = [1, 2, 3]
# print(num)
# print(othe)
# print("")
a = [1, 2]
b = a
a.append(3)
print(a)
print(b)
# print("")
# s = [1, 2]
# t = s
# s = s + [3]
# print(s)
# print(t)
# def introduce(name):
# print("Hello,", name)
# introduce("Benjamin!")
# introduce("Grace!")
# introduce("Ada!")
print("")
def greet(name):
print("Hello,", name)
greet("Benjamin!")
# print(name)
def add_one(number):
print(number)
add_one(5)
add_one(20)
print("")
x = [1, 2]
y = x
z = y
y.append(3)
print(x)
print(y)
print(z)
result = print("Hello")
print(result)
result = add(2, 3)
print(result)