Python files readline, strip() and using while loops while reading files

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 3

  • @dmitriyzhemkov5954
    @dmitriyzhemkov5954 2 роки тому +1

    4:25 When you used the loop, you started printing "plane" from the second line not the first. Your output should've started with "Cub Special" but instead it started with "Archer." How would you fix this?
    Edit: Unless I'm just dumb...

    • @reallifeed12
      @reallifeed12  2 роки тому +1

      You're absolutely , thanks for pointing that out. To correct this, I should have removed the "plane = airplanes.readline()" above the while statement.

  • @nabilkhaldi5566
    @nabilkhaldi5566 Рік тому

    thank u so much