IN-PLACE OPERATORS | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответов
+ 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