Computer Science
Which of the following is not in Python character set?
- Letters: A - Z or a - z
- Digits: 0 - 9
- Whitespaces: blank space, tab, etc.
- Images: Vector
Answer
Images: Vector
Reason — "Images: Vector" is not part of the Python character set because Python supports the following character set:
- Letters: A - Z, a - z
- Digits: 0 - 9
- Whitespaces: blank space, tabs ('\t'), carriage return, newline, formfeed.
- Special Symbols: +, -, /, \, *, **, (), [], {}, //, =, !=, ==, <>, >=, <=, ;, :, %, !, ?, &, $, ^, @, _
- Other characters: All other 256 ASCII and Unicode characters.
Related Questions
What is the order of precedence of arithmetic operators given below in Python?
(1) Parenthesis
(2) Exponential
(3) Multiplication
(4) Division
(5) Addition
(6) Subtraction- 1,2,3,4,5,6
- 2,3,4,5,6,1
- 1,3,2,6,4,5
- 4,6,5,2,3,1
What will be the output of the following snippet?
x, y = 2, 6 x, y = y, x + 2 print(x, y)- 6 6
- 4 4
- 4 6
- 6 4
Each statement in Python is terminated by …………… .
- Semicolon (;)
- Colon (:)
- Comma (,)
- None of these
The extension for a Python file is given as:
- .pt
- .pwy
- .py or .pyw
- .yppy