csv.reader(file)
csv.read(file)
csv.readcsv(file)
csv.readcsvdata(file)
take a sequence, like a list, and arrange the items in ascending order
take a sequence, like a list, and reorganize the order of the items.
take a sequence, like a list, and arrange the items in descending
take a sequence, like a list, and return the same copy of sequence
211
216
1024
512
20.0
20
40.0
40
_py_
var
_var
try
What does the following code will print ?
x=5 if x>3: print("Hello")
Hello
Hello Hello
nothing
Hello Hello Hello Hello Hello
27.2
29.0
14.9
12.3
7
8
10
6
4
4.0
8.0
What will be the output of the following ?
import math print(math.fact(5))
120
25
1,2,3,4,5
Error
Read two words from file
Read two line from file
Read two character / two bytes
count the number of '2' in file
r
rb
w
r+
The truncated decimal part of a number
The rounded integer value of a number.
The truncated integer value of a number.
The floor (largest integer less than or equal to the number).
file_object=open(file_name,mode)
open(file_object,file_name,mode)
file_open(file_object,file_name,mode)
file_object=file_open(file_name,mode)
pop()
delete()
remove_last()
delete_last()
-9
9
-6
What will be the output of the following Python code?
>>>max("what are you")
what
y
a
Break stops the execution of entire program
Break halts the execution and forces the control out of the loop
Break forces the control out of the loop and starts the execution of next iteration
Break halts the execution of the loop for certain time frame
White Space
,
e
S
ab
rw
w+