int or print | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

int or print

Should not it be print("3"+"4"), instead of int("3"+"4")?

18th Nov 2018, 2:50 AM
arash bakhtmand
arash bakhtmand - avatar
2 ответов
+ 4
Hey arash bakhtmand ! It's a little difficult to understand what your question is, so could you try to clarify what exactly you need help with?
18th Nov 2018, 3:03 AM
Faisal - avatar
+ 3
Int is used to typecast i.e change the data type to integer whereas, print is used to print the data within the brackeks Eg. print (3.3) #Prints 3.3 print (int (3.3)) #Prints 3 X =int( 3.3) print (X) #Prints 3
18th Nov 2018, 3:15 AM
‎ ‏‏‎Anonymous Guy