round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
What will the following code output?
a=‘INFOMAX’ a=10 print(type(a))
<class 'int'>
<class ‘str'>
<class ‘bool'>
Error
Integer
Complex Number
None
String
float
str
set
int
bool
void
variable
literal
identifier
comment
char
list
tuple
class
dictionary
addr()
mem()
id()
hash()
Lists
Dictionary
Tuples
Class
Braces {}
Parentheses ()
Indentation
Semicolon ;
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
Brackets
Quotes
Braces
Parentheses
a=55 b=55 print( a is not b)
True
False
55
TypeError
dict
Integer a, b, cSet b= 5, a = 1c= a & bPrint c
1
3
5
7
Variable
Literals
Identifiers
Comment
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
Docstring
Python Package Index
both a & b
none of the mentioned
Number
List
Slice
Tuple
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.
string
complex