IN-PLACE OPERATORS | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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