title: I'm confused whether we can access the contents of list by not mentioning the index of elements in the code. Can someone explain this?
body: <p>My tutor hasn't bothered to explicitly specify the index number to gain access to particular elements of a list. This seems strange to me and I believe it also affects the readability of code. Can someone explain how my tutor's code is working perfectly? I get the logic though.</p>
  <p><em><strong>This is my code:-</strong></em></p>
  <pre><code>score_student = input(&quot;Enter the score of each student: &quot;)
  list_of_marks = []
  list_of_marks = score_student.split(&quot; &quot;)
  print(list_of_marks)
  index_count = 0
  for item in range(1, len(list_of_marks)):
      if list_of_marks[index_count] &lt; list_of_marks[item]:
          index_count = item
      else:
          continue
  print(&quot;Largest score in class = &quot; + list_of_marks[index_count])
  </code></pre>
  <p><em><strong>Code of my tutor:-</strong></em></p>
  <pre><code>student_scores = input(&quot;Input a list of student scores &quot;).split()
  for n in range(0, len(student_scores)):
    student_scores[n] = int(student_scores[n])
  print(student_scores)
  highest_score = 0
  for score in student_score:
       if score &gt; highest_score:
            highest_score = score
  print(f&quot;Highest score in class:{highest_score} &quot;)
  </code></pre>