Question: string _ 1 = 'hello there' string _ 2 = hello there A student defined the above strings and didn't realize they'd used single vs

string_1= 'hello there'
string_2= "hello there"
A student defined the above strings and didn't realize they'd used single vs double quotes. Later in the code, the two strings are compared. What happens?
Group of answer choices
An error is flagged because strings must be declared with double quotes only
An error is flagged because strings must be declared with single quotes only
They are different, so the comparison returns False
The are equal, so the comparison returns True

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!