0

Complete the code to output "name is age years old", where name and age are the declared variable values.

name = "James" age = "42" print (name + "is" + age + "years" + "old") How to create space in these string??

29th Dec 2021, 7:27 AM
Kadam Rutuja Chandrakant
Kadam Rutuja Chandrakant - avatar
4 Answers
+ 3
" years old" could be one whole string
29th Dec 2021, 7:56 PM
SoloilSole
SoloilSole - avatar
+ 1
Simba Jay Matthews Thanks 👍
29th Dec 2021, 7:39 AM
Kadam Rutuja Chandrakant
Kadam Rutuja Chandrakant - avatar
0
print (name + " is " + age + " years old") Use spaces to separated in " " and after a + and before
21st Apr 2022, 2:26 PM
Endrina Feliz Herrera