Skip to content

Commit 1a0bb16

Browse files
committed
update main.py
1 parent 49fe8bb commit 1a0bb16

File tree

1 file changed

+1
-1
lines changed
  • 09-Day9-Typecasting-in-Python

1 file changed

+1
-1
lines changed

09-Day9-Typecasting-in-Python/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
a = "1"
22
# a = 1
3-
b = "2" # direct addition of a and b eithout typecasting will lead to concatenation of the two strings a + b = "12"
3+
b = "2" # direct addition of a and b without typecasting will lead to concatenation of the two strings a + b = "12"
44
# b = 2
55
print(int(a) + int(b))
66

0 commit comments

Comments
 (0)