If a function call returns a sequence, you can index it directly : Index : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Index »

 

If a function call returns a sequence, you can index it directly


fourth = raw_input('Year: ')[3]
print fourth



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo List
» Index