Computer Science, asked by mnavneeth5904, 8 months ago

What is the output of the following code? var1 = 1 var2 = 2 var3 = "3" print(var + var2 + var3) * 2 points 6 33 123 Error. Mixing operators between numbers and strings are not supported

Answers

Answered by ArpitMishra506
12

Output :-

3 3

Explanation :-

var1 and var2 are integers so there values will be added i.e. 1+2 = 3

but var3 is a string so it will pe printed as a string.

.

.

.

.

HOPE THIS HELPS YOU

.

.

.

.

PLEASE MARK AS BRAINLIEST AND FOLLOW ME TOO

Answered by VarunVerma28
5

Answer:

Error

Explanation:

As only variables va2 and var3 is initialized not variable "var". So, it will give error.

Similar questions