Sunday, July 12, 2020

Run a simple python code in windows machine

Run python in windows machine

You can download python3 for windows from the below mentioned site



Download and install it, then open the command prompt and type python


After  typing python and clicking enter, you will get into the python shell.

Now you can write a print statement to run a basic python program after ">>>"




This line is used to print the message "This is the first python program"

print is a function in python to display message. the message can be inside single quotes or double quotes

>>> print('This is the first python program')

                          (OR)

>>> print("This is the first python program")

both are correct

In next post we can see about getting input and printing that with a static message. 

No comments:

Post a Comment

Conditional Statement if, if and else, if and elif with else using Arithmetic Operators and Logical Operators in python3

 If you are new to coding means conditional statement will be unfamiliar to you. For that we can take a real-time example for understanding ...