What is the output of this code if the user enter '42' as input: age = int(input()) print(age+8) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

What is the output of this code if the user enter '42' as input: age = int(input()) print(age+8)

7th Nov 2020, 7:13 AM
Mehar Jaiswal
Mehar Jaiswal - avatar
12 Answers
+ 6
Obviously 50 isn't it.
7th Nov 2020, 7:18 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
X=5 Y=x+3 Y=int(str(y)+”2”) Print(y)
4th Mar 2021, 2:07 PM
victor
+ 1
answer 50
10th May 2021, 10:33 AM
Lola
Lola - avatar
0
Confío en ustedes con cada célula de mi cuerpo porque de esto depende mi examén.
9th Mar 2021, 2:00 PM
Arnoldo Vielma
Arnoldo Vielma - avatar
0
10th Apr 2021, 1:52 PM
Dishan Poojari
0
50
13th May 2021, 10:25 AM
Ibrahim abdulkareem Muhammad
Ibrahim abdulkareem Muhammad - avatar
0
19th May 2021, 5:02 AM
Gfsd Fg
Gfsd Fg - avatar
0
the answer is 50
24th May 2021, 2:16 PM
venkat
venkat - avatar
0
50
27th Aug 2021, 12:23 PM
PRINCE KUMAR
PRINCE KUMAR - avatar
0
50
23rd Mar 2022, 7:49 PM
Lacey Worell
0
50
8th Aug 2022, 9:14 AM
Oulad chaouia Mohamed
- 1
Yes Its 50.
7th Nov 2020, 7:38 AM
Muhammad Atif Waheed
Muhammad Atif Waheed - avatar