3-1-5-7. Editing a Python Script

Write a script of your own

Open up a brand new empty file in your text editor, name it and save it in the place where you’re keeping the files for your Python learning. Put the following code into it.

how_many_snakes = 1
snake_string = """
Welcome to Python3!

             ____
            / . .\\
            \  ---<
             \  /
   __________/ /
-=:___________/

<3, Juno
"""


print(snake_string * how_many_snakes)

Run the file with Python 3, and put the output in the quiz box.

%d 블로거가 이것을 좋아합니다: