We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.
import math
y = [] # empty list used as empty dynamic aray
print y # to visualize what we have before
for x in xrange(100):
y.append(math.sin(x * 20))
print y # what is inside after
print '-' * 70
# The alternative approach to simulate better the array. The list
# of 100 elements is created first. Then the "normal" indexing
# can be used to access and modify the elements.
y = [0] * 100
print y # to visualize what we have before
for x in xrange(100):
y[x] = math.sin(x * 20)
print y # what is inside after
import math
import matplotlib.pyplot as plt
y = [0] * 100
for x in xrange(100):
y[x] = math.sin(x * 20)
plt.plot(y)
plt.ylabel('sin(x)')
plt.show()
If you are experiencing a similar issue, please ask a related question
Title | # Comments | Views | Activity |
---|---|---|---|
How to create users on Windows using python? Maybe Windows Batch? | 3 | 94 | |
Python Encoding Problem \u2013 | 4 | 121 | |
Ptyhon Dex.txt how to use this regex for this python script? | 40 | 96 | |
Python filter object attributes | 2 | 24 |
Join the community of 500,000 technology professionals and ask your questions.