Q. Write instructions to get the following result:

Python is easy to learn and write.

It allows us to work in two modes: Interactive mode and Script mode.

Interactive mode is also known as Python Shell and Script mode is known as Python Editor.

It is a platform-independent language.

We find it interesting to work with Python.

Do it in both interactive mode and script mode.


Answer :-


In interactive mode:

>>> print ("""Python is easy to learn and write.

It allows us to work in two modes: Interactive mode and Script mode.

Interactive mode is also known as Python Shell and Script mode is known as Python Editor.

It is a platform-independent language.

We find it interesting to work with Python.

""")


In scripting mode:

print ("""Python is easy to learn and write.
It allows us to work in two modes: Interactive mode and Script mode.
Interactive mode is also known as Python Shell and Script mode is known as Python Editor.
It is a platform-independent language.
We find it interesting to work with Python.
""")

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post