Computer Science, asked by Ehtasham22, 3 months ago

write a program to demonstrate typecasting in python ​

Answers

Answered by Anonymous
0

Answer:

In the above program, We add num_str and num_int variable. We converted num_str from string(higher) to integer(lower) type using int() function to perform the addition. After converting num_str to an integer value, Python is able to add these two variables. We got the num_sum value and data type to be an integer.

Similar questions