How I can define array of integer numbers in Python code
Say if this code is ok. or no
pos = [int]
len = 99
for i in range (0,99):
pos[i]=7
Why not just:
pos = [7] * 99
This is the most pythonic, in my opinion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With