For example, see the following codes:
They are similar and they absolutely valid, but they are different.
In other words, when writing in Python we have to pay too much attention to the indentation.
x(
Code:
#!/usr/bin/env python
import time, random
current_time = time.gmtime()
random.seed(current_time)
x = [1, 2]
y = [1, 2]
[B]for i in x:
for j in y:
result = random.random()
print str(result)[/B]
Code:
#!/usr/bin/env python
import time, random
current_time = time.gmtime()
random.seed(current_time)
x = [1, 2]
y = [1, 2]
[B]for i in x:
for j in y:
result = random.random()
print str(result)[/B]
Code:
#!/usr/bin/env python
import time, random
current_time = time.gmtime()
random.seed(current_time)
x = [1, 2]
y = [1, 2]
[B]
for i in x:
for j in y:
result = random.random()
print str(result)[/B]
They are similar and they absolutely valid, but they are different.
In other words, when writing in Python we have to pay too much attention to the indentation.
x(