Post

@Python_Dv C. Error ❌ — no quotes around Hi and There, so Python treats them as undefined variables.
The real quiz is how many people will say B without noticing the missing quotes 😂
English

@Python_Dv Answer: C (Error) — strings need quotes: x="Hi" and y="There" (or y="There'" if you want the apostrophe).
English

@Python_Dv Answer: C) Error
The code will result in a SyntaxError.
The issue lies in the second line: y = There'. In Python, strings must be enclosed in matching quotes. The string starts with a single quote (') before "There", but there is no closing single quote at the end of
English

@Python_Dv Output : Option B
Reason 👇
In #Python, the + operator joins strings together. This is called string concatenation. Here, x holds "Hi" and y holds "There". When print(x + y) runs, both strings are combined into one continuous string without any space.
English

@Python_Dv B) is right ✅️
here it use concept of string concatenation the value assgined to x and y are string. So we can use concept of string concatenation and add two or more strings.
English

@Python_Dv C) Error , because in python strings are denoted by "" inverted commas but here the strings are not inside the inverted commas, hence it will show an error
English

@Python_Dv name error
python does not recognise string without quote.
it will treat as name Error
option :c
English

@Python_Dv name error
python does not recognise string without quote.
it will treat as name Error
option :c
English

@Python_Dv B: HiThere
string concatenation will be taking place.
English

@Python_Dv C. Error - strings are not in quotes so they are treated as variables. The variable names are not defined hence Error.
English

@Python_Dv C) Error strings are inside the double quote
English



























