To test our setup, we will going to run the very simple print code, and there’s no other contents better than the word “Hello World”
Our very first code of course:
print (‘Hello world’)
Note:
-it will be inside the open and close parenthesis
-can use single or double quote
There are few ways (in Window)
1. run it under the python prompt
C:\Users\pythonoob>python
Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>> print (‘Hello World’)
Hello World>>> print (“Hello World”)
Hello World
2.Save (even without extension, but recommended to use .py) and run “python <filename>
D:\>more helloworld.py
print (‘Hello World’)
Hello World