Post

Python Programming
Python Programming@PythonPr·
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
Python Programming tweet media
English
33
7
136
14.3K
Zac Nielsen
Zac Nielsen@itszacnielsen·
@PythonPr B) numbers are represented as strings here.
English
0
0
12
822
Heri Wambo
Heri Wambo@WamboHeri·
@PythonPr Because is string script will print 55. Concatenation
English
0
0
1
330
DailyCodeflow
DailyCodeflow@DailyCodeflow·
@PythonPr Output: 55 Reason: a and b are strings, so + does string concatenation, not numeric addition.
English
0
0
0
2
แชร์