हिंदी

Identify the statement from the following which will raise an error: - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Identify the statement from the following which will raise an error:

विकल्प

  • print("A"*3)

  • print(5*3)

  • print("15" + 3)

  • print("15" + "13")

MCQ

उत्तर

print("15" + 3)

Explanation:

A type error will occur with the following statement: print("15" + 3), where "15" is a string and "3" is an integer. 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2023-2024 (February) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×