Correct Answer: raw_input() reads input as a string, while input() evaluates input as Python code.
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 common convention do Python programs use to indicate internal-only APIs?
If you use UTF-8 characters in your source file, what should you do to make it work under Python 2?
Given the following code, what will be printed to the standard output? x = 5 def some_function(): print(x) x = 6 some_function() print(x)
This decorated function in python: @foo def bar(): ... is equal to:
How are imaginary numbers denoted in Python?
What command is used to get the hostname of the computer the Python script is running on?
Regarding the code below, what's correct statement ? class Book: def __init__(self, isbn): self.isbn = isbn isbn = 'test' book = Book(12345)
Whic statement is true regarding __slots__ in Python?
Suppose we have a User class, how do we make a new User object?
Output of the following code be: def a(): print 'a executed' return [] def b(x=a()): x.append(5) x.append(1) print x b() b() b()