QuantumATK Forum
QuantumATK => General Questions and Answers => Topic started by: jaco on July 3, 2013, 03:37
-
dear Professor:
i saw a script in the web and how is the mean of [-1]:
#read the transmission spectrum
transmission = nlread('dtb_analysis.nc',TransmissionSpectrum)[-1]
Thanks in advance!
best regards
jaco
-
In Python, you can access the last item in a list by using the -1 notation. Example:
will print 3.