We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49fe8bb commit 1a0bb16Copy full SHA for 1a0bb16
09-Day9-Typecasting-in-Python/main.py
@@ -1,6 +1,6 @@
1
a = "1"
2
# a = 1
3
-b = "2" # direct addition of a and b eithout typecasting will lead to concatenation of the two strings a + b = "12"
+b = "2" # direct addition of a and b without typecasting will lead to concatenation of the two strings a + b = "12"
4
# b = 2
5
print(int(a) + int(b))
6
0 commit comments