CBSE Class 11 Informatics Practices
Question 77 of 102
Python Programming Fundamentals — Question 38
Back to all questionsThe error in the above code is in the print statement. We cannot concatenate a string (Name) and an integer (Age) directly using the '+' operator. The corrected code is:
Name = "Prateek"
Age = 26
print("Your name & age are", Name + str(Age))