aboutsummaryrefslogtreecommitdiff
path: root/Code/Python/func_slow.py
blob: 9cba9c5b12043a2eb2e9fd8eed13053c35fea351 (plain) (blame)
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
#!/usr/bin/python

def func_c():
	print "Function C"
	i = 0
	while (i < 3000000):
		i = i + 1
		j = i + 1

def func_b():
	print "Function B"
	i = 0
	while (i < 2000000):
		i = i + 1
		j = i + 1
	func_c()

def func_a():
	print "Function A"
	i = 0
	while (i < 1000000):
		i = i + 1
		j = i + 1
	func_b()

func_a()