Test Files 2
Language: English
Subject:
Technology
> Software
Age: 17 - 18
Test Files 2
To read all contents from file object FILE at once we may use
a) FILE.read(*)
b) FILE.readlines()
c) FILE.read()
d) FILE.readline()
a
b
c
d
To read 20 characters from file object FILE at once we may use
a) FILE.read(20)
b) FILE.readlines(20)
c) FILE.read(char=20)
d) FILE.readline(char=20)
a
b
c
d
a=f.read()
print(type(a))
list
str
tuple
read object
Write a UDF to read a file and find number of words which are only numbers
Example She is 18 years old and lives at 92 dunbury street
The above text should return 2