I thank in advance the people who can help me with this query, since I am new to programming.
I am taking a python course and I was practicing the conditionals and the following question arose: Why when concatenating with commas do not give me any error but when I concatenate with the plus sign (+) I get the following error: TypeError: can only concatenate str (not "int") to str
I have read that in Python you can not concatenate different data. If when putting the plus sign the note variable in this way str (note) performs the print but the data converts it to string.
Sorry if the question has no logic or is obvious for those who have experience but do not want to leave empty or doubt.
nombre = "Jean Carlos"
nota = 4
if nota >= 8:
print("Felicidades" , nombre , " Tu nota es" ,nota , "." , "Eres un excelente alumno")
else:
print(nombre , "Lamentamos que tu nota se" , nota , "Perdiste el año")