Post

Jenny
Jenny@JennyTheDev·
@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
0
0
10
1.7K
Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@Python_Dv Answer: C (Error) — strings need quotes: x="Hi" and y="There" (or y="There'" if you want the apostrophe).
English
0
0
5
1.1K
Earnest Codes
Earnest Codes@Earnesto037·
@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
1
0
3
1.5K
PyBerry Tech 🐍🍓
PyBerry Tech 🐍🍓@PyBerryTech·
@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
2
0
1
1.3K
Python Tech
Python Tech@PythonTech43716·
@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
1
0
1
1.8K
sahib chhabra
sahib chhabra@SahibChhabra17·
@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
0
0
0
143
Evil_Hunter
Evil_Hunter@imsmartVik·
@Python_Dv name error python does not recognise string without quote. it will treat as name Error option :c
English
0
0
0
13
Evil_Hunter
Evil_Hunter@imsmartVik·
@Python_Dv name error python does not recognise string without quote. it will treat as name Error option :c
English
0
0
0
518
Fochaz
Fochaz@fmabonga·
@Python_Dv C. Error - strings are not in quotes so they are treated as variables. The variable names are not defined hence Error.
English
0
0
0
460
WhyTHnot
WhyTHnot@WhyTHnot·
@Python_Dv Error, no quote so x and y are undefined variable
English
0
0
0
309
Paylaş