Basic syntax of python

Let us execute a Python program to print “Hello, World!” in two different modes of Python Programming. (a) Interactive Mode Programming (b) Script Mode Programming.

print('hello')
a = 10;
b = 20;
print(40/50)

Enter here in vs code editor

Or Type python index.py (index.py is the name of file)

Result will be show here:

 

Leave a Reply