Brackets
Quotes
Braces
Parentheses
What will the following code output?
a=55 b=55 print( a is not b)
True
False
55
TypeError
list
tuple
class
dictionary
Variable
Literals
Identifiers
Comment
Number
String
List
Slice
What will be the datatype of the var in the below code snippet?
var = 10print(type(var))var = "Hello"print(type(var))
Str and int
int and int
str and str
int and str
Class
Dictionary
Tuple
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
Integer
Complex Number
None
addr()
mem()
id()
hash()
int
float
bool
dict
Docstring
Python Package Index
both a & b
none of the mentioned
Integer a, b, cSet b= 5, a = 1c= a & bPrint c
1
3
5
7
Set
Lists
Tuples
<class 'int'>
<class 'float'>
<class 'complex'>
str
set
What will be the output?
print(type(()))
<class 'set'>
<class 'dict'>
<class 'tuple'>
Error
Provide a convenient way of associating documentation with Python modules, functions, classes, and methods.
All functions should have a docstring.
Docstrings can be accessed by the ___doc_attribute on objects.
All of the mentioned.
a=‘INFOMAX’ a=10 print(type(a))
<class ‘str'>
<class ‘bool'>
Braces {}
Parentheses ()
Indentation
Semicolon ;
char
void
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
variable
literal
identifier
comment
string
complex