Monday, October 23, 2017

Installing Python

What is python?

If you don't understand this, don't worry. Just skip it and move on.
Python is an interpreted programming language. For those who don't know, a programming language is what you write down to tell a computer what to do. However, the computer doesn't read the language directly - there are hundreds of programming languages, and it couldn't understand them all. So, when someone writes a program, they will write it in their language of choice, and then compile it - that is, turn it into lots of 0s and 1s, that the computer can easily and quickly understand. A windows program that you buy is already compiled for windows - if you opened the program file up, you'd just get a mass of weird characters and rectangles. Give it a go - find a small windows program, and open it up in notepad or WordPad. See what garbled mess you get.
But that windows program is compiled for windows - no other machine can run that program unless it has windows. What Python is, is a language which is never actually compiled in full - instead, an interpreter turns each line of code into 0s and 1s that your computer can understand this. And it is done on the fly - it compiles the bits of the program you are using as you are using them. If you were to quit the program and come back another day, it would compile the bits you are using, as you are using them, again. Seems a waste of time? Maybe, but the fact is that when you come back another day, you might be using a Windows instead of a Mac. You might send the program to a friend, who uses another type of computer. Or you might post your program on the internet, where everyone using all different types of systems might download it. That is the wonder of an interpreted programming language - it is like a language that EVERYONE can understand.

So why will civIV use Python?

Remember that garbled mess that you got when opening a program in notepad? Not much use to anyone, apart from the computer. And there is no reliable (or legal) way of turning that program back into a programming language that you or I could understand.
The same is with Civ3 AI - it is compiled into a garbled mess. Nobody can understand it, and most of all, nobody can change it. Only Firaxis can change the AI, and they can't share the logic behind it with anyone.
With cIV, they decided to change that - they would leave the AI uncompiled in the language of Python, and have it compiled on-the-fly by an interpreter. This is so that Joe modder can look at the AI and change it, yet when it is needed to be used, the python interpreter turns it into 0s and 1s for your computer to understand. And it isn't permanently compiled into a garbled mess - you are still left with python code, that you can read, understand, and MODIFY!!!!!

How to install python

  1. First, download Python-2.4.1.exe by following this link. If you are a dial-up user, keep in mind that the file is around 10MB
  2. Run the file you just downloaded, and follow the prompts.
OK! Hopefully now everything is good! Now, to test if that just worked, type this in your DOS window:
Code Example 1 - Testing the installation
python -V
If you forgot a CAPITAL V, you will accidentally load python in verbose mode. Give it a go, see what happens. Just press CTRL-D to quit, or type 'quit' for quit instructions.

conclusion

Good work! Lesson 1 over! Next lesson, we learn our way around Python Interactive Mode and write simple one-line pieces of code. I'll also have a lesson plan drawn up by then so you can see where you are going. If any of our more experienced members have suggestions for the lesson plan, tell me!


  1. 10 Most Popular Password Cracking Tools [Updated for 2017]
  2. How To Use VirtualBox: User’s Guide
  3. Top Best Hacking Tools Of 2017 For Windows, Linux and Mac OS X
  4. Download VMware Workstation Pro 12.5.7 Latest Full Version With Keys For Free
  5. ব্যবহার করুন পৃথিবীর যে কোন প্রান্তের পিসি !
  6. Top 10 Hacking Tools
Also Read

2 comments:

  1. If you are in need of financial Help, don't hesitate to place order for deserve Programmed card that can withdraw any amount limit you want. Deserve Card are very transparent and easy to deal with. You can Purchase Deserve card that can withdraw up to $50,000 to $100,000 limit without being detected because of the programming of the card.  I'm extremely grateful to them for being honest with their words and delivering the card to me. This is the third day of receiving the card and i have withdraw $9,500 from the Deserve Programmed Card. I tried purchasing the card previously from someone else, but it never arrived until i tried skylink technology for those in need of more money, you can also contact them. you can place order for the card Via whatsapp +1(213)785-1553  or their E-mail: skylinktechnes@yahoo.com or website: https://skylinktechnes.wixsite.com/info
    or telegram group: https://t.me/hacksandinvestmenttutorials  

    ReplyDelete


  2. If you ever want to change or up your university grades contact cybergolden hacker he'll get it done and show a proof of work done before payment. He's efficient, reliable and affordable. He can also perform all sorts of hacks including text, whatsapp, password decrypt,hack any mobile phone, Escape Bancruptcy, Delete Criminal Records and the rest

    Email: cybergoldenhacker at gmail dot com

    ReplyDelete