Which variable causes the first letter of word to go in last?


#1


#2

Hi @coreblaster65317,

Your query is unclear. Seeing the code, I can tell that:

  1. first variable holds the first letter of the word ("ashu")
  2. new_word holds the word ("ashu") + first ("a") + pyg ("ay") = "ashuaay"
  3. The statement - new_word = new_word[1: len(new_word)] causes the first letter of the new_word to be removed, resulting in new_word = "shuaay"

Hope it helps! :slightly_smiling: