+ 4

If B = int(70)+ 3 ....How it takes? Whether it adds and give 73 or it prints 703

13th Aug 2019, 12:09 PM
Pooja M R
Pooja M R - avatar
2 odpowiedzi
+ 10
It will be 73. The int () function converts the object to an integer, that is, we have sum 70 and 3
13th Aug 2019, 12:13 PM
Mikhail Gorchanyuk
Mikhail Gorchanyuk - avatar
+ 4
int(70) is not necessary, because 70 is already an integer. 70 + 3 = 73, because they are both integers. "70" + 3 = error 70 + "3" = error "70" + "3" = "703"
13th Aug 2019, 1:27 PM
Seb TheS
Seb TheS - avatar