+ 1
https://code.sololearn.com/csnqyx51kz0q/?ref=app there are just too many things you've done wrong, try the code below and learn from it. also, you should complete the python for begginerrs course.
18th Sep 2022, 7:35 AM
Altair Enigma
Altair Enigma - avatar
+ 6
You need to review Python course, especially the chapters covering input & output technique. * You try to use variable <g> before you read its value * You have 'g' inside a string -> " + g ars old" but that was not the correct way to print a variable's value.
18th Sep 2022, 3:06 AM
Ipang
+ 2
g = int(input()) print("you are",str(g),"years old") String data type cannot be concatenate with int data type . If You want to use a int as a string typecasting comes into the play.
20th Sep 2022, 9:59 AM
KARAN SINGH D
KARAN SINGH D - avatar