Back to Lesson

End Character Override

Print on the same line using end="".

Instructions

  • Use a
    for
    loop to print numbers 1 through 5.
  • Print them on the same line, separated by spaces.
  • Use
    end=" "
    to prevent newlines.
main.py
main.py