Robotics & Artificial Intelligence
Write short notes on Character Sets with reference to Python language.
Getting Started
2 Likes
Answer
Python is a computer language that enables the users to communicate with the computer system, using the set of valid characters that the language can recognise, similar to the alphabet of English language. It may be any letter, digit or any other symbol. The different character sets used in Python include Letters (A-Z and a-z), Digits (0-9), Arithmetical Operators (+, -, *, \/, %), Logical Operators (and, or, not), Relational Operators (<, <=, >, >=, == and !=), Special Characters (space, backslash, underscore, parenthesis, etc.) and White Spaces (Blank space, Tab key, Enter key, Newline).
Answered By
1 Like
Related Questions
Assertion (A): Python works in two different modes. These modes are used as per the need of the user while performing the tasks.
Reason (R): Interactive mode refers to the mode where the user is able to see the instant output for the given input. Whereas, the script mode is used only when the user needs to make a program file.
Based on the above discussion, choose an appropriate statement from the options given below:
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true and R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
- Both A and R are false.
In Python programming, this mode refers to the mode where the user can instantly obtain the output, for the input given. The moment a statement or a command is typed in the Python command prompt and the 'Enter' key is pressed, the output will appear on the next line of the interactive screen.
Read the above paragraph to answer the following questions:
(a) Name the mode where get the instant output on the screen.
(b) Write down representation of the default Python prompt.
Write short notes on Escape Sequences with reference to Python language.
Write short notes on Literals with reference to Python language.