CBSE Class 11: Command-Line Interaction

Command-Line Interaction

When commands are entered directly in IDLE from the keyboard, the interpreter/IDLE is said be in interactive mode. In interactive mode, type the command “Hello Python” in front of the prompt (>>>) and press Enter, and we get the output as ‘Hello Python’.

We can also use print() to display some text, like
>>>print(“Welcome to Python”)

Python is a case sensitive language. This means that Python differentiates between capital and small alphabets. For example Print(P Capital) and print (p small) are two different things for Python.

We can also use this IDLE as a Calculator to perform mathematical calculations using the Python command prompt.

Number Of Visitors

0173196