Skip to main content

Learn Python #3 Drawing a Shape

  In this tutorial I want to say to you about a basic python program. So we are going to write it as a very simple python program. We are going to look at how we can go ahead and write up program we are going to talk about. How our program are getting executed by python. And we are going to draw out a little shape onto the screen. This is going to be pretty cool. I am excited to talk you guys about just the very basics of python and really just sort of give you an introduction.
  So we can actually print something out onto the screen and python using something called a print statement. So I can just type out
print("     /|")
print("    / |")
print("   /  |")
print("  /   |")
print(" /____|")
 When we use this print statement were basically telling python like Just print something out onto the console. There is a lot of situations where we are gonna see what is going on in our code. We can use that print statement and print things out to the console. And we can basically like have a little window into what our program doing. In out case, we are just going to be printing out this triangle onto the console. I can really draw any shape I want it as long as i was ale to specify inside of those print statements. 
  Python is actually going to execute the line of code that we write in order. So the order in which I write the instructions matter a lot.
  So this is basically how your Python programs are going to go. We can essentially just define these little instructions for the computer, and the computer will execute them in order.

Comments

Popular Posts

Hướng dẫn sửa lỗi "File is changed: W[2007] L[2]" Đột Kích

Đây là lỗi game rất nhiều người (trong đó có mình mắc phải). Tuy nhiên khi lên diễn đàn hỏi thì các MOD đều trả lời 1 câu là tải game về cài lại rồi close luôn topic. Mình rất không hài lòng về điều đó. Hình ảnh ví dụ về lỗi : Và dưới đây là cách mình sửa. Tải trên mạng File bị lỗi (Có ghi tên file khi CF thông báo lỗi) hoặc copy từ máy tính khác về. Replace vào thư mục của nó. Vậy là ok. Các bạn nào hỏng file nào thì tải về rồi replace nó. Nếu ko có thì comment ở dưới, mình sẽ upload sớm nhất có thể cho các bạn. Video hướng dẫn :

Vì sao nên chơi LOL server NA (Bắc Mĩ)

Dưới đây là những lí do mình khuyên bạn nên chơi Liên minh server Bắc Mỹ : 1. Giá 1 số tướng rẻ hơn server VN 2. Chế độ chọn tướng, chọn vị trí rồi mới chọn đội 3. Quà tặng cho tân thủ nhiều hơn (Tristana (tướng + skin) + Alistar (tướng + skin)) 4. Nhiều icon cho bạn lựa chọn 5. Số lượng gói combo nhiều hơn 6. Có thể chuyển tài khoản đến các vùng khác trên thế giới  7. Có thể hoàn lại những vật phẩm đã mua (Cả bằng IP lẫn RP) 8. Trình độ bên đó cao hơn hẳn server VN và ko có trẻ trâu, cãi nhau rất ít. Hướng dẫn chuyển server VN sang NA :  http://ngdinhnha.blogspot.com/2014/04/chia-se-huong-dan-choi-lol-tat-ca.html Tải game tại :  https://signup.leagueoflegends.com/en/signup/redownload Đăng kí  tài khoản LOL NA tại :  https://signup.leagueoflegends.com/en/signup/index

How to play League of Legends server Japan Closed Beta - Testing account

The first, you need League of Legends by Riot. (Here, I am playing in server North America) Download Next, Click to  North America. Then, Click to North America. Then, Click Japan And Save Waiting for download Japanese version. League of Legends server Japan Closed Beta is starting from February 4th. This is testing account :  Good luck ! Video :