Popular Posts

Friday, August 14, 2020

Python Beginner: Drawing a Shape code

  Hello, developer!


I hope you're familiar with PyCharm IDE interface and features. I think it needs some time to learn more features and functions of it. So I recommend you to explorer it and you don't afraid of changing and clicking on it. If you have serious trouble so you can't run it, you can uninstall it and re-install.  

Today, we will learn "Drawing a Shape" using the "print" code.


Let's create "New Python file" by click "File" - "New..." and "Python File" and input file name in the "New Python File" as below screenshot.



I input below Python codes using "print" command to draw a triangle shape.

print("   /|")
print(" / |")
print(" / |")
print("/___|")

Here is this code "Run" way and showed the result at the PyCharm console window as below.

Can you see the triangle at the PyCharm console window?  Then, congratulations! Now you can utilize the Python "print" feature.


See you next post! :)



No comments:

Post a Comment

Python - Web crawling exercises

Hello Python developer! How are you? Hope you've been good and had wonderful time with Python. There are 10 Python requests module exerc...