Hello World program in Python 3 (how-to)

Опубликовано: 03 Март 2025
на канале: FREAKIN’ FAST Tutorials
907
8

In this video, I will show you how to code a Hello World program using the Python programming language. I will be using Python 3 in Windows 10 using Notepad++ as my text editor. This code will work the same on a Mac or in Unix and you're free to use whichever text editor you're most comfortable with.

To write a "Hello, World!" script in Python, you can use the print() function. Here a simple script:
print("Hello, World!")

To run this script, you can save it in a file with a .py extension (e.g. hello_world.py) and then run it from the command line by typing "python hello_world.py" (without the quotes). This will execute the script and display the output "Hello, World!" on the screen.

You can also use the interactive Python interpreter to write and run your script.
To do this: Open your terminal and type "python" (without the quotes) to start the interpreter. Then you can type the script print("Hello, World!") and hit enter to run the script, it will display "Hello, World!"

I will be going over some Python 3 syntax and how it has changed from Python 2. If you find this video helpful, I invite you to subscribe and join me on my journey of learning Python (I've come over from Java, Ruby, and R.)

Thank you for being a part of my channel and if you have any questions, let me know in the comments below! Thank you for watching!