Informatics Practices

Consider the statements given below and write Python command to display these statements in both Interactive and Script mode.

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 also known as Python Editor.
It is a platform-independent language.
We find it interesting to work with Python.

Getting Started

2 Likes

Answer

Interactive Mode:

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

Script Mode:

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

Answered By

1 Like


Related Questions