IN-PLACE OPERATORS | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

IN-PLACE OPERATORS

What is the output of this code? x=5 y = x + 3 y = int(str(y) + ā€œ2ā€ print(y)

5th Mar 2021, 11:39 AM
Sidiali Abdallah
Sidiali Abdallah - avatar
2 Respostas
+ 2
thanks
5th Mar 2021, 12:04 PM
Sidiali Abdallah
Sidiali Abdallah - avatar
+ 1
Error because missed parenthesis in y = int(str(y)+"2 If not the output is 82
5th Mar 2021, 11:45 AM
HBhZ_C
HBhZ_C - avatar