Pratice 13.3 name = "James" age = "42" print (name + "\tis" + age +"\tyears old") this my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Pratice 13.3 name = "James" age = "42" print (name + "\tis" + age +"\tyears old") this my code

Please help to me I try many time that output wrong what is o/p of the code.

30th Dec 2021, 10:18 AM
priya dharsini
1 Answer
+ 2
Hello priya dharsini You need to add some whitespaces to get the output "James is 42 years old" print(name + " is " + age + " years old") "is" -> " is " "years old" -> " years old"
30th Dec 2021, 10:23 AM
Denise Roßberg
Denise Roßberg - avatar