0

What is the meaning of (int)

2nd Dec 2018, 7:52 AM
Arnab Das
Arnab Das - avatar
2 Réponses
+ 3
# I suggest you try these in code playground and then you should understand : print( input() + input()) # input # 5 # 5 # to test # and then replace input() with int(input()) # and also test with 5 5 # and compare the results.
2nd Dec 2018, 8:19 AM
Gordon
Gordon - avatar
+ 5
That is called type casting., specifically explicit casting. It is used to convert a data type to another data type. Check out the code below: https://code.sololearn.com/ci4X0V5KR757/?ref=app
2nd Dec 2018, 8:20 AM
Lambda_Driver
Lambda_Driver - avatar