No products in the cart.

why is following code giving error? …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

why is following code giving error? print(11+3) print('11'+3)
  • 3 answers

Suman Gupta 11 months, 2 weeks ago

String always add with string not an integer or float .

Abhik G 11 months, 2 weeks ago

Simply the answer is , string can not be concatenate or added with an integer

Abrar Sheriff 1 year ago

The problem is with line 2 of given code because an integer cannot added to a syring value,thus python will give:Type Error: can only concatenate str(not"int")to str
http://mycbseguide.com/examin8/

Related Questions

Accessing list
  • 1 answers
What is the machine leaning
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App