a = 8
b = 5
sum_result = a + b
print(sum_result)
#source code --> clcoding.com
Explanation:
Assigning Values to Variables:
a = 8
b = 5
The variable a is assigned the value 8.
The variable b is assigned the value 5.
Performing Addition:
sum_result = a + b
The + operator is used to add the values of a and b.
sum_result = 8 + 5, so sum_result stores the value 13.
Printing the Result:
print(sum_result)
The print() function outputs the value of sum_result to the screen.
Since sum_result = 13, the output will be:
13
0 Comments:
Post a Comment