X = "a" x+= 3 print(x) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

X = "a" x+= 3 print(x)

Ans plzz

5th Feb 2019, 2:13 PM
Amit
Amit - avatar
3 Answers
+ 3
Lucky Luke Did you actually try to do that? Computer says no 🤔
5th Feb 2019, 3:14 PM
Anna
Anna - avatar
+ 1
The answer is an Error. Integers and strings cannot be concatenated (in Python).
5th Feb 2019, 2:59 PM
giannismach
giannismach - avatar
+ 1
Anna oops...😕 I was sure that the rules were the same for JS and Python, but I were wrong... I will correct my previous answer.
5th Feb 2019, 3:50 PM
giannismach
giannismach - avatar