Computer Science
Write the given instructions in Interactive and Script modes 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.
Getting Started
1 Like
Answer
Interactive Modes
>>> 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 known as Python Editor. It is a platform-independent language.")
>>> print("We find it interesting to work with Python.")
Script Modes
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 known as Python Editor. It is a platform-independent language.")
print("We find it interesting to work with Python.")
Output
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.
Answered By
3 Likes
Related Questions
What are advantages/disadvantages of working in Interactive mode in Python?
Write Python statement for the following in interactive mode:
- To display sum of 3, 8.0, 6*12
- To print sum of 16, 5.0, 44.0
Write a code that prints your full name and your birthday as separate strings.
Record what happens when the following statements are executed:
(a) print (n=17)
(b) print (8 + 9)
(c) print (4.2, "hello", 6 - 2, "world", 15/2.0)
(d) print ("123abc", sep = '-')
(e) print ("XXX", end ='!')