Intro To Python Programming

Python is a high-level, interpreted programming language that was first released in 1991 by Guido Van Rossum. It is known for its simplicity, readability, and flexibility, making it a popular choice for beginners and experts alike.


What Can Python Do?

Python is a general purpose language and can be used for a lot of tasks, it is a really great language applied in areas of:



Is python easy to learn?

Python is widely considered among the easiest programming languages for beginners to learn. If you're interested in learning a programming language, Python is a good place to start.


Kickstart your coding journey in Python

head over to online python editor to see a very basic example of how to run a hello world program, left click on the space where there are some python code and then select all by holding CTRL+A and backspace to clear the online editor then type the print("hello world") text below exactly the way it was described below, don't miss the quotes or brackets or it will return an error. After typing this in the online terminal which you opened in a new tab, click the "Run" button below the text area where you type the print("Hello world") text to run the program and you will see the output in the terminal

print

(

"Hello, World!"

)

Ensure that you type it exactly as it is above, with a lower case p letter on the print statement. This is a syntax(set of rules) that python adheres to and if you miss out the syntax the code may not execute sucessfully and if it does then congratulations, you have sucessfully written your first python program, you can replace the "Hello world" with any other text like "This is my first python proram" just make sure it is in the "quotes" encased in the () bracket in the format below

print

(

"This is my first python program!"

)

You can run this on your pc without having to do it online with w3schools python editor, the thing is... to run python programs, you need an IDE(Integrated Development Environment) with a python terminal, in order to fully follow this path to be able to do things like.. programming desktop apps and mini games.

To do this, follow the steps:

  • 1. Open a text editor: You can use any text editor to write Python code. Notepad, Sublime Text, Atom, and Visual Studio Code are popular choices. You could even use the normal notepad text editor that comes on all windows desktop

  • Type the code: In the text editor, type the following code exactly as shown:

    print

    (

    "Hello, World!"

    )

  • 2. Save the file: Save the file with a .py extension, such as "hello.py".
  • 3. Run the program: Open a terminal or command prompt and navigate to the directory where you saved the file. Then type the following command:
  • python hello.py

    This will execute the program, and you should see the output "Hello, World!" in the terminal.

    Congratulations, you have written your first Python program! From here, you can start learning more about the language and experimenting with different types of programs.