s.count(x) The return value of :
B. character string s in x The number of
Used to return a string s The function of the length of is :
B.len(s)
User input 0-100 Between the percentile scores , Turn it into a five point output , The correct answer below is :
C
score = float(input())
degree = “EEEEEEDCBAA”
score_five =degree[int(score // 10)]
print(score_five)
When traversing a file object , Which of the following methods can be used to remove line breaks at the end of a line :
B.s.strip()
s = “Hello world”
print(“{:5}”.format(s))
The run result of is :
C.Hello world
num = 3.00001284
print(“{:.3f}”.format(num))
The output of the running result is :
B.3.000
print(“Hello”)
print(“Hello\n”)
Run these two statements , The correct choice below is
C. The last statement outputs one more blank line
python in random In the library , Methods that can generate integer random numbers are :
A.randint()