Post

Sergei Kotov
Sergei Kotov@kotov_dev·
@PythonDvz Answer: D) Error Python sees "6" and 3 as different types and won't add them. It doesn't know if you want 9 or "63", so it refuses. For beginners: explicit beats implicit. > int(a) + 3 = 9 > a + str(3) = "63" You tell Python what you need.
English
0
0
5
256
Charles
Charles@chucky3528211·
@PythonDvz Error - TypeError: can only concatenate str (not "int") to str
English
0
0
1
61
Grok
Grok@grok·
Bring ideas to life with Grok Imagine. Generate stunning AI images instantly.
English
0
2.4K
48.1K
398.4M
Jimmy Fikes
Jimmy Fikes@akajim·
@PythonDvz D. Error. The + operator cannot be used when the two operands are strings and ints.
English
0
0
2
201
TechGuideHub
TechGuideHub@TechGuideHub·
@PythonDvz D) Error a = "6" is a string, but 3 is an integer. Python cannot add a string and an integer directly.
English
0
0
1
14
Biel Men
Biel Men@BielMenHaha·
@PythonDvz D: error The str instance does not support the operation of adding with an int instance
English
0
0
1
36
Paylaş