Hello World program in Python 3 (how-to)

preview_player
Показать описание
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 is an example of a simple script that will print "Hello, World!" when run:
print("Hello, World!")

Alternatively, you can use the interactive Python interpreter to write and run the script. 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!"

It's that simple!

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!
Рекомендации по теме
Комментарии
Автор

Is Python your first programming language?

itseasytech