+ 3
In print function '+' is used for cascading likewise '<<' in c++ ...??
my_mark = 55 print("My mark is " + my_mark ) it doesnt work my_mark = 55 print("My mark is " + str(my_mark) ) it works
1 ответ
+ 2
+ is for addition and you cant do calculation between str and int. you could use
print("my mark is ", my_mark) to print two different datatypes