What function do you use to read a string?
Correct Answer: input("Enter a string")
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Python Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Python MCQ Questions
What is the return value of trunc()?
Output of following code? def addItem(l): l += [0] mylist = [1, 2, 3, 4, 5] addItem(mylist) print len(mylist)
orig = { '1' : 1, '2' : 2 } a_copy = orig.copy() orig['1'] = 5 sum = orig['1'] + a_copy['1'] print sum What will be printed in the above Python code?
Which is the correct way to empty a list, using theList as an example?
Output of following code? nums = list() i = 3 while (i < 9): nums.append(i) i = i+2 print(nums)
In Python, what is the default maximum level of recursion?
Object is the base class of new-style datatypes. Which function is not a member of the object class?
Which member of the object class compare two parameters?
Which will disable output buffering in Python?
Which is the base language of Python?