In this page, you learn basic Python example is simple and easy to write to run. Here is a simple Python example that will print "Welcome to Learnhowtocodeinfo ".
# This is Example of python
>>> x="Welcome to Learnhowtocodeinfo"
>>> print x
Welcome to Learnhowtocodeinfo
>>>
Details of this example
We are using IDLE to write the Python example. Details to run example is given in Execute Python section.
A variable is defined named "x" which hold "Welcome to Learnhowtocodeinfo ". "print" statement is used to print the statement. Therefore "print x" statement will print the line of the variable. Therefore, the output "Welcome to Learnhowtocodeinfo " is produced.
0 comments:
Post a Comment