निम्नलिखित पायथन प्रोग्राम का आउटपुट खोजें।
Find the output of following Python Programs.
a= “Meetmeatafterparty”
b= 13
print a+b
A)
B)
C)
D)
Explanation:
The correct answer is (C) error in code.
In the given Python program, there are two issues:
-
The variable
a
is assigned a string value “Meetmeatafterparty”, but it is not enclosed in quotes. This will result in a syntax error. -
The variable
b
is assigned an integer value 13.
The
print
statement print a + b
attempts to concatenate the string value of a
with the integer value of b
, which is not allowed in Python. This will result in a TypeError.Therefore, the program will not execute correctly, and the output will be an error in the code.